Pick the path that fits how your site is built. Every path follows one rule: send the customer to pay, and mark the order paid only after a signed webhook says so.
1 Create payment2 Customer pays3 Signed webhook4 Mark order paid
EasiestA
1-file PHP kit
One file to upload and four settings to fill in. No installs, no database changes to start.
The thank-you page is a web address anyone can open. Never mark an order paid because someone reached it. Only a verified webhook, or a server-side check of the payment with your secret key, can confirm the money arrived.
Customer checks out
-> your server creates the payment
-> customer is sent to the XPay4u pay page
-> customer pays the exact amount
-> XPay4u sends a signed webhook to your server
-> your server verifies it and marks the order paid
-> the thank-you page only shows the result
Webhook quick test
The webhook address must be reachable from the internet. localhost will not work, since XPay4u cannot reach your computer. While building, a tunnel tool such as ngrok or Cloudflare Tunnel can give your local server a public address.
Final testing checklist
A new order is saved as unpaid before the customer is sent to pay.
The customer lands on the XPay4u page and sees the exact amount, centavos included.
The page turns green a few seconds after the wallet sends the money.
Your webhook endpoint answers 200 to a signed request.
A request with a wrong signature is refused.
The same webhook delivered twice does not mark the order paid twice.
Opening the thank-you page without paying does not mark the order paid.
Nothing in the browser holds your secret key.
Stuck on a step?The setup guide covers the phone and wallet side. The API docs list every field and error.