Payum / Payum

PHP Payment processing library. It offers everything you need to work with payments: Credit card & offsite purchasing, subscriptions, payouts etc.
https://payum.gitbook.io/payum
MIT License
1.84k stars 339 forks source link

Show gateway's error message to the user #699

Open ThomasLandauer opened 6 years ago

ThomasLandauer commented 6 years ago

I don't know if this is a general issue, or just regarding the Sofort gateway: When submitting a wrong URL, Sofort gives this error message "Error: 8016:Must be a valid URL.". However, payum doesn't show this to the user but gives "Cannot redirect to an empty URL" (see https://github.com/Payum/Payum/issues/698 )

So I'm suggesting to show any message from the payment provider to the user, prefixed with "XY gateway says: "

makasim commented 6 years ago

Basically, It has to check that the url empty and redirect to done action where you check the payment status and show correct info to a user.

makasim commented 6 years ago

That's a bug.

diimpp commented 5 years ago

I'm having similar issue, where I get Sofort error correctly, but only <errors><error> part, while it have <su><errors><error> part as well, which is more crucial to solving the problem.

<errors><error><code>8054</code><message>All products deactivated due to errors, initiation aborted.</message></error><su><errors><error><code>8028</code><message>Sender country ID is locked in project settings, but not provided.</message></error></errors></su></errors>

I've got this xml from Sofort sdk itself, _rawResponse property.