CleonPay

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.

ValueResult
settleSucceeds after about a second
slow_settleSucceeds after 30 seconds, stands in for Multibanco
cancelCustomer abandons it
failBank declines it
expireCustomer never completes it
decline_createRejected 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.