Mock Payment API Example

Test checkout states without calling a real payment processor.

POST /api/payments
201 Created
{"id":"pay_900","status":"authorized","amount":9900,"currency":"USD"}

Pair the success response with declined, insufficient funds, duplicate charge, and processor timeout mocks.

Create Free Mock API