Closed tudorached closed 7 years ago
Hi,
Also working without doing this. Just tested right now with and without your fix and works just fine in both cases. What was the error you were receiving before doing this change? Can you please provide more information?
Thanks!
More information: Mobilpay degresses to the return url settings found in the user account, on mobilpay's website. I have tested the plugin on two different websites hosted on different servers. Making that change solves the problem.
Might be caused because of php's mbstring extension, which I've activated recently because Woocommerce emails were not rendered correctly.
I will test without mbstring and come back with the results.
Tested with mbstring extension on. Works both ways.
What's your return url structure? Check under: mobilpay panel > order details > api tab. It should be like: website-url/checkout/order-received/numeric-order-id?key=wc_order_some-string
If not, try saving again your permalink structure under wp-admin panel > settings > permalinks.
Until I did the change the return node was empty
<return/>
I understand. I will commit your change. Thank you for sharing!
Thanks for creating the plugin!
You're welcome! 👍
Hi,
The returnUrl sent by _$this->get_returnurl($order) is not beeing recognised by mobilpay.
should be replaced with: