Redirect after Failed Payment
- BryanWarmoth
- Lieutenant, Jr. Grade (LT JG)
- Posts: 44
- Joined: Fri May 23, 2008 11:24 am
- Location: Puyallup, Wa
- Contact:
Redirect after Failed Payment
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
HandleFailedPayments option was available on reciept page in AbleCommerce 7.
- BryanWarmoth
- Lieutenant, Jr. Grade (LT JG)
- Posts: 44
- Joined: Fri May 23, 2008 11:24 am
- Location: Puyallup, Wa
- Contact:
Re: Redirect after Failed Payment
Opps sorry I put the wrong page down. HandleFailedPayments is enabled on the receipt.aspx page.
Re: Redirect after Failed Payment
So you got it in right place?
Re: Redirect after Failed Payment
check the following code in your RecieptPage.ascx.cs file
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.
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()));
}
- BryanWarmoth
- Lieutenant, Jr. Grade (LT JG)
- Posts: 44
- Joined: Fri May 23, 2008 11:24 am
- Location: Puyallup, Wa
- Contact:
Re: Redirect after Failed Payment
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
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
anyone find a fix for this? i've just noticed this recently in our cart as well.
Re: Redirect after Failed Payment
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.