How do I properly manually send the user to the Payment Error Page (the page after the Confirmation Cart Step) if for example the Auth process failed due to some reason that makes the credit card invalid?
Is this the "teaCommerceCancelUrl" parameter in GenerateForm() method? Will redirection to this url make TC Framework properly cancel the order? I'm doing these stuff manually because the gateway cannot post to my site. I only process the HttpResponse I get from them. So if i get a response from Authorization that indicates a failure I wish to redirect the user to the cancel Url.
Ok, so you're creating a custom payment provider? That's a different situation then.
Yes, the teaCommerceCancelUrl is the "magic" cancel url of Tea Commerce. I'm not the expert on payment providers, that would be Anders Burla, and I will have him take a look on your question.
BUT, calling the teaCommerceCancelUrl might do the trick for you. It will send the user to the cancel url, that i mentioned in my previous answer.
You should also know that there is no "right" way of cancelling payment. If the order has not yet been finalized (which means that the payment has been successfull) you can allways return to the webshop and continue using the order.
Cool! I guess "teaCommerceCancelUrl" is exactly what I need then. Awesome! And yes I am creating a custom payment provider for QuickBooksMerchantServices using the Desktop Model. I will try and work with this "teaCommerceCancelUrl" parameter now and post feedback when I am able. Again, thank you so much for responding to my inquiry. TC rocks!
Payment Error Page
Hi,
How do I properly manually send the user to the Payment Error Page (the page after the Confirmation Cart Step) if for example the Auth process failed due to some reason that makes the credit card invalid?
Regards,
Dennis
Hi Dennis,
You do that by setting the Cancel url of your payment method(s). Just paste the full url of your error page in there.
Then the payment gateway will redirect there when the user cancels the payment, or an error happens.
/Rune
Hi Rune,
Is this the "teaCommerceCancelUrl" parameter in GenerateForm() method? Will redirection to this url make TC Framework properly cancel the order? I'm doing these stuff manually because the gateway cannot post to my site. I only process the HttpResponse I get from them. So if i get a response from Authorization that indicates a failure I wish to redirect the user to the cancel Url.
Thank you for responding :)
Regards,
Dennis
Hi Dennis,
Ok, so you're creating a custom payment provider? That's a different situation then.
Yes, the teaCommerceCancelUrl is the "magic" cancel url of Tea Commerce. I'm not the expert on payment providers, that would be Anders Burla, and I will have him take a look on your question.
BUT, calling the teaCommerceCancelUrl might do the trick for you. It will send the user to the cancel url, that i mentioned in my previous answer.
You should also know that there is no "right" way of cancelling payment. If the order has not yet been finalized (which means that the payment has been successfull) you can allways return to the webshop and continue using the order.
/Rune
Hi Rune,
Cool! I guess "teaCommerceCancelUrl" is exactly what I need then. Awesome! And yes I am creating a custom payment provider for QuickBooksMerchantServices using the Desktop Model. I will try and work with this "teaCommerceCancelUrl" parameter now and post feedback when I am able. Again, thank you so much for responding to my inquiry. TC rocks!
Regards,
Dennis
is working on a reply...