sendmock payments checkout complete
Pay, decline or cancel from the checkout page.
sendmock payments checkout complete <sessionId> <action> [flags]
| Argument | Type | Description |
|---|---|---|
| <sessionId>required | string | The SMTP session's ID, from GET /api/v1/logs/smtp.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D |
| <action>required | string | What the customer does: pay, decline, cancel, delay (pending), require_three_ds, three_ds_approve or three_ds_fail.One of: pay, decline, cancel, delay, require_three_ds, three_ds_approve, three_ds_failExample: pay |
| Flag | Type | Description |
|---|---|---|
| --method-key <method-key> | string | The method the customer paid with.Example: card |
| --card <card> | CheckoutCard (JSON) | The card typed, for card methods. |
| --entries <entries> | CheckoutStepEntries (JSON) | What was typed in the flow's other steps. |
| --decline-reason <decline-reason> | string | For decline: why the bank declined.One of: insufficient_funds, expired_card, incorrect_cvc, generic_decline, fraudulent, authentication_failedExample: insufficient_funds |
Example
sendmock payments checkout complete 01JB7T9Q2R5W8X3Y6Z1A4B7C9D pay --method-key card --decline-reason insufficient_funds
Output with --json: CheckoutSession. Exit codes: 0, 1, 2, 3.
- API
- POST
/api/v1/checkout-sessions/{sessionId}/complete - MCP tool
sendmock_checkout_complete- In the app
- Test checkout page > pay, Test controls