Skip to Content
Docs
pay CLI

Simulate events

Make clearing, disputes, fraud warnings, and returns happen in the sandbox.

In the live environment, these events come from banks, card networks, and processors. In the sandbox, pay simulate triggers these events on demand.

Charges

Simulate charge clearing, disputes, fraud warnings, and collaborations by charge ID:

Terminal

pay simulate charge clear chrg_685125114794084352
pay simulate charge dispute chrg_685125114794084352 --status lost
pay simulate charge fraud-warning chrg_685125114794084352 --type made_with_stolen_card --actionable
pay simulate charge collaboration chrg_685125114794084352 --source ethoca

Without --status, a dispute is open. Each command's --help lists the values it takes.

Payouts and subscriptions

A payout must have succeeded, and a subscription must be active:

Terminal

pay simulate payout return po_296645958265997315
pay simulate subscription charge sub_296645958265997340

The webhooks follow as they would in the live environment. Run pay listen first to see them. Test your integration says what each one does.

Was this page helpful?