Payment Mock API Template

Plan payment flows without touching real cards, processors, or customer balances.

Endpoint set

POST /api/payments
POST /api/payments/pay_204/capture
POST /api/refunds
GET /api/disputes/dsp_88
GET /api/payment-methods

Example response

{
  "id": "pay_204",
  "amount": 12900,
  "currency": "USD",
  "status": "authorized"
}

Payment mocks should include declined cards, duplicate submissions, partial refunds, processor timeouts, and webhook retries.

Create payment mock endpoints

Use HttpStatus for safe hosted payment mocks.

Create Free Mock API