Accept an Afterpay / Clearpay payment with Stripe.js

Опубликовано: 05 Ноябрь 2024
на канале: Stripe Developers
6,478
33

In this episode, you'll learn how to confirm an Afterpay / Clearpay payment with a React client. Afterpay / Clearpay is a payment method available through Stripe that enables your customers to buy now and pay later.

Table of contents

00:00 Introduction
01:20 Verify server endpoints
02:10 Implement a payment form with Afterpay / Clearpay
04:47 Create a payment intent
05:39 Confirm the payment intent
07:45 Test the demo
08:23 Implement the thank you page
10:15 Recap

Server implementations

Ruby -    • Accept a payment - Create a PaymentIn...  
Python -    • Accept a payment - Create a PaymentIn...  
PHP -    • Accept a payment - Create a PaymentIn...  
Node.js -    • Accept a payment - Create a PaymentIn...  
Java -    • Accept a payment - Create a PaymentIn...  
Go -    • Accept a payment - Create a PaymentIn...  
.NET -    • Accept a payment - Create a PaymentIn...  

Other client implementations

Not using vanilla JavaScript? Consider these other episodes that cover the same content in different front end implementations:

React -    • Accept an Afterpay / Clearpay payment...  

Presenter

CJ Avilla - Developer Advocate at Stripe -   / cjav_dev  

Resources

Official client library: https://github.com/stripe/react-strip...
Official documentation: https://stripe.com/docs/payments/afte...
Code: https://github.com/stripe-samples/acc...

Support
If you have a question, please feel free to reach out to our support team on Discord at https://stripe.com/go/developer-chat.

Updates
Sign up to stay updated with developer news: https://go.stripe.global/dev-digest

Feedback
If you have any feedback about this or other episodes, let us know: https://forms.gle/VjNqzRhotM2snYo88.
#Stripe #Payments