Accept an Afterpay / Clearpay payment with Stripe.js

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 - https://youtu.be/079khYtqWPo
Python - https://youtu.be/3s4Dwox7oTQ
PHP - https://youtu.be/BPfpPGl85tk
Node.js - https://youtu.be/BPfpPGl85tk
Java - https://youtu.be/BPfpPGl85tk
Go - https://youtu.be/BPfpPGl85tk
.NET - https://youtu.be/BPfpPGl85tk

### Other client implementations

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

React - https://youtu.be/GS91DCwn_Ek

### Presenter

CJ Avilla - Developer Advocate at Stripe - https://twitter.com/cjav_dev

### Resources

Official client library: https://github.com/stripe/react-stripe-js
Official documentation: https://stripe.com/docs/payments/afterpay-clearpay/accept-a-payment
Code: https://github.com/stripe-samples/accept-a-payment/blob/main/custom-payment-flow/client/html/afterpay-clearpay.js

### 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