Adds default value to custom fields on Payment Links
What’s new
Adds the default_value parameter to the existing custom_fields[][text], custom_fields[][numeric] and custom_fields[][dropdown] parameters on the Create a Payment Link and Update a Payment Link endpoints.
Impact
Payment Links users can now provide a default value when using custom fields. Default values prefill the form field on the payment page.
Changes
| Parameter | Change | Resources or endpoints |
|---|---|---|
| default_value | Added | PaymentLink#create.custom_fields[].dropdown PaymentLink#create.custom_fields[].numeric PaymentLink#create.custom_fields[].text + 6 more PaymentLink#update.custom_fields[].dropdown PaymentLink#update.custom_fields[].numeric PaymentLink#update.custom_fields[].text PaymentLink.custom_fields[].dropdown PaymentLink.custom_fields[].numeric PaymentLink.custom_fields[].text |
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: 2025-03-31. basil
- 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.
