The payment scenarios of a sandbox customer
What each pm_sandbox_* payment method does. Sandbox keys only.
Loading the operation...
Sandbox only - close a period now and run the real billing flow POST
Lowers the period's cutoff to now + 5 s, then billing runs exactly as at month end: watermark (starting 30 s after the new cutoff), rating, numbering (`SBX-…`) and the invoice saga with mock payments. Poll `GET /v1/invoices`. `period` defaults to the current period. Live keys get 403.
Run an invoice's payment again under a scenario POST
Sets the invoice's customer to the scenario (it stays their payment method) and retries the invoice's payment. When the payment cannot run again now (paid, or in progress) the scenario is still set and `retried` is false with the reason in `retry_error`. Sandbox keys only.