Accept a payment with the Payment Element using Java

In this episode, you'll learn how to accept a one-time payment with a custom form using Java on the server and the Stripe PaymentElement on the client. The PaymentElement enables you to collect several different payment method types from cards and bank accounts to wallets and buy-now-pay-later payment methods.


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

### Table of contents
00:00 Introduction
01:39 Install a sample with the Stripe CLI
04:50 Enable payment methods in the dashboard
06:00 Overview of payment flow
06:36 Create payment intent on the server
10:26 Collect payment details on the client
14:56 Submit payment details to Stripe
17:30 Build a confirmation page
20:25 Handle webhooks and post-processing events
23:10 Test your integration with Stripe test cards
24:33 Conclusion

### Resources
Accept a payment - https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements&lang=java
PaymentIntent API reference - https://stripe.com/docs/api/payment_intents/create?lang=java
Learn all about webhooks - https://stripe.com/docs/videos/developer-foundations?video=webhook-helpers&lang=java


### 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 #java #javaprogramming #javapayments