Simulate a decline
Send a sale the sandbox always refuses, and handle the refusal where it arrives: in the response body.
Your answers so far
Choose one
What to build
Run the card decline blueprint. Branch on resultCode and declineReasonCode, never on the description text, and decide from the reason code whether the payment is worth retrying.
What this means for PCI
This is guidance rather than a compliance determination. Which questionnaire you are eligible for depends on your full environment, so confirm it with your QSA or your acquirer before you rely on it.
Worth knowing
- A decline is an HTTP success carrying a refused transaction. Code that only checks the status code treats it as an approval.