Environment: sandbox
Checkout URL: https://pay-sandbox.sepay.vn/v1/checkout/init
| Field | Value |
|---|---|
| merchant | SP-TEST-TL58A67B |
| currency | VND |
| order_amount | 100000 |
| operation | PURCHASE |
| order_description | Thanh toan don hang INV_1782158550593 |
| order_invoice_number | INV_1782158550593 |
| success_url | https://pay.tqlloki.site/payment/success |
| error_url | https://pay.tqlloki.site/payment/error |
| cancel_url | https://pay.tqlloki.site/payment/cancel |
| signature | 6+lwn07n6mmJ7+CZWXpw5tRXZN3SPBygsMoZLc+s37s= |
order_amount=100000,merchant=SP-TEST-TL58A67B,currency=VND,operation=PURCHASE,order_description=Thanh toan don hang INV_1782158550593,order_invoice_number=INV_1782158550593,success_url=https://pay.tqlloki.site/payment/success,error_url=https://pay.tqlloki.site/payment/error,cancel_url=https://pay.tqlloki.site/payment/cancel
https://pay.tqlloki.site/payment/successhttps://pay.tqlloki.site/payment/errorhttps://pay.tqlloki.site/payment/cancelhttps://pay.tqlloki.site/payment/ipn (demo local endpoint để anh tự test POST)https://pay.tqlloki.site/sepay/webhook (SePay webhook endpoint)Cấu hình URL nhận webhook trên SePay:
https://pay.tqlloki.site/sepay/webhook
Endpoint này nhận HTTP POST và trả JSON {"success": true} theo docs webhook SePay.