Adds new error code for invalid mandate prefixes to Bacs Direct Debit and the related setting Direct Debit payments
What’s new
Adds the invalid_mandate_reference_prefix_format error code as an enum value to the following resources: Payment Intents, Setup Attempts, Setup Intents, and Errors. This allows you to test your integration and more easily discover any issues with the format of reference prefixes in Mandates related to Bacs Direct Debit and the related setting Direct Debit payments.
Changes
| Parameters | Change | Resources or endpoints |
|---|---|---|
| mandate_options | Added | PaymentIntent#confirm. payment_method_options. bacs_debit PaymentIntent#create. payment_method_options. bacs_debit PaymentIntent#update. payment_method_options. bacs_debit + 1 more PaymentIntent. payment_method_options. bacs_debit |
| bacs_debit | Added | SetupIntent#confirm. payment_method_options SetupIntent#create. payment_method_options SetupIntent#update. payment_method_options + 1 more SetupIntent. payment_method_options |
| Value | Change | Enums |
| invalid_mandate_reference_prefix_format | Added | Invoice. last_finalization_error. code PaymentIntent. last_payment_error. code SetupAttempt. setup_error. code + 2 more SetupIntent. last_setup_error. code StripeError. code |
Upgrade
- View your current API version in Workbench.
- If you use an SDK, upgrade to the corresponding SDK version for this API version.
- If you don’t use an SDK, update your API requests to include Stripe-Version: 2024-09-30. acacia
- Upgrade the API version used for webhook endpoints .
- Test your integration against the new version.
- If you use Connect, test your Connect integration .
- In Workbench, perform the upgrade . You can roll back the version for 72 hours.
Learn more about Stripe API upgrades.
