Return notifications and URLs
How to update the order by Nexi XPay: REST notifications, return page and what you should not block.
The order is updated in two ways, so that no payment is lost if the client closes the browser:
- Server-to-server alarm From Nexi to
https://το-domain-σας/wp-json/obs-nexi-xpay/v1/s2s/<αριθμός παραγγελίας>(POST). - Return of the customer The e-shop. Then the plugin asks Nexi about the final state of payment.
Both URLs are automatically created for each order and sent to Nexi with the payment request. You're not reporting it anywhere. Each notice is checked with a unique security token of the order and with the amount and currency that waited for e-shop.
What should not be blocked#
- The
/wp-json/obs-nexi-xpay/v1/must answer from the internet. Flugins close REST API or firewall (WAF) blocking POST there stop notifications. - No password (HTTP auth), maintenance mode or mandatory connection to live site.
- Exclude from cache URLs with
obs_nexi_returnandobs_nexi_cancel.
Control#
- Open Tools → Health website and make sure there is no error for REST API or loopback requests.
- Make a test payment and close the browser on the Nexi page after success.
- Check that the order is made Edited without returning the client.
It's not solved?
Request support
Send a request; the plugin and the article are automatically completed.