Use payment sandbox
sandbox_paymentsCharge, refund, list, get, or reset payments in a deterministic test sandbox using Stripe test card numbers, rejecting any other card-like values.
Instructions
Charge, refund, list, get or reset in a payment sandbox. Accepts only card numbers from Stripe's published testing list; any other card-like number is refused. Declines return code and decline_code. Same seed and call order, same objects for the same sandbox version. Use it after sandbox_create, with that sandbox's id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | Charge: a card number from Stripe's published testing list, e.g. 4242424242424242; decline numbers: invalid_values kind card | |
| chaos | No | Deliberate misbehaviour for testing error handling | |
| limit | No | ||
| action | Yes | ||
| amount | No | Minor units; charge, or partial refund | |
| charge | No | Charge id, for refund and get | |
| fields | No | Comma-separated fields to keep, e.g. value,reason | |
| currency | No | ||
| reference | No | ||
| sandbox_id | Yes |