Includes several changes for users of the Payment Intents API private beta Breaking 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 source
orsource_
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 source
parameter.
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.