![]() ![]() For example, if your customer backs out of the checkout process and adds new items to their cart, you may need to update the amount when they start the checkout process again. If the amount changes, you can update its amount. We recommend creating a PaymentIntent as soon as you know the amount, such as when the customer begins the checkout process, to help track your sales funnel. d "payment_method_types"= card Best practices ![]() When you create the PaymentIntent, you can specify options like the amount and currency: The client confirms the payment, and your server monitors webhooks to detect when the payment successfully completes or fails. ![]() It describes how to create a PaymentIntent on the server and pass its client secret to the client instead of passing the entire PaymentIntent object. To get started, see the accept a payment guide. The PaymentIntent encapsulates details about the transaction, such as the supported payment methods, the amount to collect, and the desired currency. Each PaymentIntent typically correlates with a single shopping cart or customer session in your application. ![]() These APIs help you handle dynamic payments (for example, additional authentication like 3D Secure) and prepare you for expansion to other countries while allowing you to support new regulations and regional payment methods.īuilding an integration with the Payment Intents API involves two actions: creating and confirming a PaymentIntent. Use the Payment Intents API together with the Setup Intents and Payment Methods APIs. Support for Strong Customer Authentication (SCA) and similar regulatory changes.Some of the advantages of using the Payment Intents API include: It tracks a payment from creation through checkout, and triggers additional authentication steps when required. Use the Payment Intents API to build an integration that can handle complex payment flows. ![]()
0 Comments
Leave a Reply. |