code_invalidThe BLIK code is invalid
Stripe's code_invalid decline means the BLIK code was invalid or malformed. Ask the customer for a new code. Outcome reason is generic_decline.
- Type
- Local payment method codes
- Hard decline
- Not on Stripe's list
- Share the reason
- Yes
What does code_invalid mean?
The BLIK code is invalid or malformed.
What to tell the customer
Ask the customer to enter a new BLIK code from their banking app.
That BLIK code wasn't valid. Please generate a new code in your banking app and enter it again.
Should you retry code_invalid?
Stripe doesn't say. Stripe Billing doesn't retry failed local payment method payments unless you turn that on in your retry settings.
Where code_invalid shows up
For local payment methods, the PaymentIntent's last_payment_error.decline_code is code_invalid, and Stripe reports the Charge's outcome.reason as generic_decline.
Get failed payments in Slack
ChargeBell posts a Slack alert when a Stripe payment fails, with the amount, the customer, and Stripe's decline message. Open the payment from the alert to see its decline code, such as code_invalid, and follow up from there.