Includes several changes for users of the Payment Intents API private betaBreaking changes
What’s new
The following changes only affect users of PaymentIntents as part of the private beta before November 15, 2018. If you didn’t use PaymentIntents before then, the following changes don’t affect you:
- The
next_dictionary on PaymentIntents previously contained a key calledsource_ action value. This replaces that withauthorize_andwith_ url use_keys.stripe_ sdk - When creating PaymentIntents, renames the
attempt_parameter toconfirmation confirm. - The PaymentIntent confirm endpoint no longer supports the
payment_parameter. To update a PaymentIntent’s source, passintent sourceorsource_as a top-level parameter.data - The
return_parameter is only allowed when confirming a PaymentIntent. Passingurl return_when updating a PaymentIntent is no longer allowed.url - When creating a PaymentIntent with
transfer_, you must provide thedata[destination] on_parameter, and it must match the account provided tobehalf_ of transfer_. This is because when you provide a destination, Stripe settles charges in the country of the destination account.data[destination] - The
next_dictionary on PaymentIntents no longer contains thesource_ action source_property. To view the source type when retrieving PaymentIntents, expand thetype sourceparameter.
Impact
This set of changes affects early Payment Intents beta users, modifying several aspects of the API. These modifications require significant updates to existing code that interacts with PaymentIntents, potentially impacting payment flow logic, error handling, and data processing. You need to update you integration to align with the new structure and requirements.