Testing
Force any outcome on demand, including the ones that are hard to reproduce.
Sandbox payments accept a metadata.simulate directive, so you
can test the paths a real bank will not reproduce on request.
| Value | Result |
|---|---|
settle | Succeeds after about a second |
slow_settle | Succeeds after 30 seconds, stands in for Multibanco |
cancel | Customer abandons it |
fail | Bank declines it |
expire | Customer never completes it |
decline_create | Rejected before a redirect is issued |
{
"method": "ideal",
"amount": 1050,
"currency": "EUR",
"country": "NL",
"success_url": "https://shop.example.com/thanks",
"error_url": "https://shop.example.com/failed",
"metadata": { "simulate": "slow_settle" }
}
Omit the directive and the redirect leads to a page with buttons, so you can walk the flow by hand.
Test the slow path. Multibanco customers
pay at a cash machine, sometimes days later. Integrations that assume
settlement follows the redirect within seconds break on it, and
slow_settle is how you find that before a customer does.