docs: update PAYMENTS_SETUP for checkout complete URL

This commit is contained in:
senke 2026-02-22 14:42:44 +01:00
parent 508e082bcc
commit 9cd56a05a6

View file

@ -67,8 +67,9 @@ HYPERSWITCH_URL=http://localhost:18081
HYPERSWITCH_API_KEY=your_api_key_from_control_center
HYPERSWITCH_WEBHOOK_SECRET=whsec_xxx
# Checkout success redirect (used in return_url)
CHECKOUT_SUCCESS_URL=http://localhost:5173/purchases
# Checkout complete redirect (base URL; backend appends ?order_id=xxx)
# v0.402: Use /checkout/complete for success/error page (order status determines display)
CHECKOUT_SUCCESS_URL=http://localhost:5173/checkout/complete
```
For Docker, use `http://hyperswitch:8080` as `HYPERSWITCH_URL`.
@ -102,7 +103,7 @@ The webhook is **public** (no auth). Signature verification is done via `HYPERSW
6. Hyperswitch payment form appears
7. Use Mollie test card or iDEAL
8. On success, webhook updates order and creates licenses
9. User is redirected to `/purchases`
9. User is redirected to `/checkout/complete?order_id=xxx` (success or error based on order status)
## 8. Simulated Payments (No Hyperswitch)