Redirect after Failed Payment

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
BryanWarmoth
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 44
Joined: Fri May 23, 2008 11:24 am
Location: Puyallup, Wa
Contact:

Redirect after Failed Payment

Post by BryanWarmoth » Tue Mar 03, 2009 3:16 pm

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!
Bryan Bingham
Warmoth Guitar Products Inc.
bryan@warmoth.com
http://www.warmoth.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Redirect after Failed Payment

Post by mazhar » Wed Mar 04, 2009 10:12 am

HandleFailedPayments option was available on reciept page in AbleCommerce 7.

User avatar
BryanWarmoth
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 44
Joined: Fri May 23, 2008 11:24 am
Location: Puyallup, Wa
Contact:

Re: Redirect after Failed Payment

Post by BryanWarmoth » Wed Mar 04, 2009 10:13 am

Opps sorry I put the wrong page down. HandleFailedPayments is enabled on the receipt.aspx page.
Bryan Bingham
Warmoth Guitar Products Inc.
bryan@warmoth.com
http://www.warmoth.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Redirect after Failed Payment

Post by mazhar » Wed Mar 04, 2009 10:17 am

So you got it in right place?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Redirect after Failed Payment

Post by mazhar » Wed Mar 04, 2009 10:21 am

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.

User avatar
BryanWarmoth
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 44
Joined: Fri May 23, 2008 11:24 am
Location: Puyallup, Wa
Contact:

Re: Redirect after Failed Payment

Post by BryanWarmoth » Wed Mar 04, 2009 10:34 am

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.
Bryan Bingham
Warmoth Guitar Products Inc.
bryan@warmoth.com
http://www.warmoth.com

User avatar
WylieE
Captain (CAPT)
Captain (CAPT)
Posts: 281
Joined: Tue Mar 25, 2008 8:26 am
Location: Puyallup, WA
Contact:

Re: Redirect after Failed Payment

Post by WylieE » Fri Mar 06, 2009 11:39 am

Is there something that needs to be added to the PayMyOrder page to redirect the customer back to the receipt page?
Eric Wylie
Warmoth Guitar Products, Inc.
http://www.warmoth.com

jdarby
Commander (CMDR)
Commander (CMDR)
Posts: 151
Joined: Thu Sep 25, 2008 2:21 pm

Re: Redirect after Failed Payment

Post by jdarby » Mon Jul 27, 2009 9:59 am

anyone find a fix for this? i've just noticed this recently in our cart as well.

User avatar
WylieE
Captain (CAPT)
Captain (CAPT)
Posts: 281
Joined: Tue Mar 25, 2008 8:26 am
Location: Puyallup, WA
Contact:

Re: Redirect after Failed Payment

Post by WylieE » Mon Aug 03, 2009 2:05 pm

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.
Eric Wylie
Warmoth Guitar Products, Inc.
http://www.warmoth.com

Post Reply