Page 1 of 1

Redirect after Failed Payment

Posted: Tue Mar 03, 2009 3:16 pm
by BryanWarmoth
I have added code to Receipt.aspx to interact with another component of our website. We have enabled the HandleFailedPayments option on OnePageCheckout.aspx. When they finally do checkout successfully they are not being redirect to the Receipt.aspx page. Is there any way to change this or where else do I need to add my code so that it interfaces with our other component after they successfully checkout. Thanks for your help!

Re: Redirect after Failed Payment

Posted: Wed Mar 04, 2009 10:12 am
by mazhar
HandleFailedPayments option was available on reciept page in AbleCommerce 7.

Re: Redirect after Failed Payment

Posted: Wed Mar 04, 2009 10:13 am
by BryanWarmoth
Opps sorry I put the wrong page down. HandleFailedPayments is enabled on the receipt.aspx page.

Re: Redirect after Failed Payment

Posted: Wed Mar 04, 2009 10:17 am
by mazhar
So you got it in right place?

Re: Redirect after Failed Payment

Posted: Wed Mar 04, 2009 10:21 am
by mazhar
check the following code in your RecieptPage.ascx.cs file

Code: Select all

if (authTx != null && authTx.TransactionStatus == TransactionStatus.Failed)
                {
                    //SEND THE CUSTOMER TO THE PAY ORDER PAGE
                    Response.Redirect(NavigationHelper.GetStoreUrl(this.Page, "Members/PayMyOrder.aspx?OrderId=" + _OrderId.ToString()));
                }
If you have failed payments enabled and haven't customized the code then it should already work. If you still want to redirect the customer to reciept page after successful payment then you can add just an else to above if with redirect to Receipt Page.

Re: Redirect after Failed Payment

Posted: Wed Mar 04, 2009 10:34 am
by BryanWarmoth
They are being redirected to the PayMyOrder.aspx page just fine, it is after they make a successful payment on the PayMyOrder.aspx page that they are not being redirected to the receipt.aspx page.

Re: Redirect after Failed Payment

Posted: Fri Mar 06, 2009 11:39 am
by WylieE
Is there something that needs to be added to the PayMyOrder page to redirect the customer back to the receipt page?

Re: Redirect after Failed Payment

Posted: Mon Jul 27, 2009 9:59 am
by jdarby
anyone find a fix for this? i've just noticed this recently in our cart as well.

Re: Redirect after Failed Payment

Posted: Mon Aug 03, 2009 2:05 pm
by WylieE
We are still having problems here and have never found a solution. Our accounting staff are cross referencing our order emails against payment receipts to see if there are any missed orders. We still miss orders from time to time and end up with cranky customers.