Customise the submit button recurring Payment Links and Checkout Sessions
What’s new
You can now customise the submit button for Checkout Sessions and Payment Links with recurring items.
We added support for the submit_type parameter when you create a Session where the mode is set to subscription. This change also includes support for making updates to the submit_type on existing Payment Links.
Impact
Users can now customise the behaviour of Checkout to use donate as the text for the submit button for recurring payments.
Changes
| Parameter | Change | Resources or endpoints |
|---|---|---|
| submit_type | Added | PaymentLink#update |
| Value | Change | Enums |
| subscribe | Added | Checkout. Session#create. submit_type Checkout. Session. submit_type PaymentLink#create. submit_type + 1 more PaymentLink. submit_type |
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-11-20. acacia
- Upgrade the API version used for webhook endpoints .
- Test your integration against the new version.
- If you use Connect, test your Connect integration .
Learn more about Stripe API upgrades.
