Hi,

I already have open support requests on alertpay.com asking about how to detect a failed payment. The SEO-based callback works fine, though.

Vikram

I was able to do this by creating a new static SEO URL in the OXID admin. So I have http://oxid/ap-cancel which OXID translates to http://oxid/index.php?cl=payment&payerror=4.

Please call/write to alertpay support to solve this problem.


2. Once the redirection to alertpay happens, there are 3 possible results:
User payment succeeds
User payment fails
User cancels operation

In these cases, I want to redirect back to either the 'thankyou' page or the 'choose payment method' page with an error message. For the payment method page, I guess I can redirect to http://oxid.localhost/index.php?cl=payment&payerror=4, but how do I display a custom error message? And in the case of success, what is the URL to display the thank you page?


I think you are talking about "ap_returnurl" and "ap_cancelurl" parameters.

So "ap_returnurl" should look like "http://shop.com/index.php?cl=order&fnc=processalertPay&sid=xxx"; so it redirects back to order class and executes "processalertPay" function, which should check the result - probably alertpay adds some parameters to redirect url which can be processed?

No, it does not. If it requests ap_returnurl, then that means the transaction was successful. If it requests ap_cancelurl, then that means ths user cancelled the transaction. There does not seem to be any way to signal that the transaction failed, although I have posted a message in their forum asking about this. From what I understand, if the transaction fails (eg: card declined) the user is given an opportunity to re-enter the CC data again on the alertpay site itself and this continues until either the transaction is successful or the user cancels.

This is definitely not one of the best payment systems around, I guess :)

If alertpay does not inform about failed payment there is no way to detect it.
Please check out its documentation or call to support.

Vikram
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to