Payment links
Every order in the shop creates a payment here with its own link. Open the link and pay with a test card: the shop receives a notification (webhook) and marks the order as paid.
0pending
0paid
0cancelled
€0.00received
No payments yet.
Place an order in the shop and its payment link will appear here automatically.
Test cards
4242 4242 4242 4242 | Successful payment (Visa) |
5555 5555 5555 4444 | Successful payment (Mastercard) |
4000 0000 0000 0002 | Declined by bank |
4000 0000 0000 9995 | Insufficient funds |
Any future expiry date and any 3-digit CVC. Other card numbers are refused.
How the shop creates a link
POST /api/v1/payments
Authorization: Bearer <API key>
Idempotency-Key: order-…-1
{"amount": 2490, "currency": "EUR",
"description": "Order #100001",
"return_url": "https://shop/orders/…"}
→ 201 {"id": "pay_…", "status": "pending",
"confirmation_url": "https://pay.wickandhearthcandles.com/pay/pay_…"}
The status changes to succeeded or canceled; a notification is POSTed to http://backend:8000/api/payments/webhook and signed with X-MockPay-Signature (HMAC-SHA256).