Preview: SendMock has no stable release yet. These docs follow develop.

CLI reference

Checkout commands

sendmock payments checkout complete

Pay, decline or cancel from the checkout page.

sendmock payments checkout complete <sessionId> <action> [flags]
ArgumentTypeDescription
<sessionId>requiredstring
The SMTP session's ID, from GET /api/v1/logs/smtp.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D
<action>requiredstring
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
FlagTypeDescription
--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

sendmock payments checkout show

What a test checkout page shows: order, methods and flows.

sendmock payments checkout show <sessionId>
ArgumentTypeDescription
<sessionId>requiredstring
The SMTP session's ID, from GET /api/v1/logs/smtp.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D

Example

sendmock payments checkout show 01JB7T9Q2R5W8X3Y6Z1A4B7C9D

Output with --json: CheckoutSession. Exit codes: 0, 1, 2, 3.

API
GET/api/v1/checkout-sessions/{sessionId}
MCP tool
sendmock_checkout_get
In the app
Test checkout page