Skip to main content
Some simulator responses leave a resource in a pending state, such as a transaction marked as capture_pending or a payout marked as processing. You can move these resources to their next state by posting a webhook payload to the connector’s webhook URL. To send a webhook, grab the webhook URL for the connector from your dashboard, and then post a JSON payload with the expected values. The simulator routes each payload using its event field, so every payload must include an event value that matches one of the supported events below. The payment_service_transaction_id needs to be set to the ID of the transaction. The rest of the fields are optional.

Authorizations

Authorization succeeded

Example payload:

Authorization failed

Example payload:

Captures

Capture succeeded

Example payload:

Capture failed

Example payload:

Refunds

Refund succeeded

Example payload:

Payouts

Payout succeeded

Example payload:

Payout declined

The simulator uses a service_decline code by default. Example payload:

Payout failed

The simulator uses a service_error code by default. Example payload:
Payout and refund webhooks are only available for the card simulator.