Learn the front end steps for accepting a payment with Apple Pay from your customers using a custom form in HTML and JavaScript. You'll learn how to use the payment request button and how to use the confirmCardPayment method from Stripe.js to securely confirm a PaymentIntent client-side. This method handles 3D Secure and Secure Customer Authentication (SCA).
Watch one of these episodes to learn the server side steps required to create a PaymentIntent using the Stripe API with one of the officially supported client libraries:
Ruby - [ Ссылка ]
Python - [ Ссылка ]
Node.js - [ Ссылка ]
Go - [ Ссылка ]
Java - [ Ссылка ]
.NET - [ Ссылка ]
PHP - [ Ссылка ]
### Table of contents
00:00 Introduction
00:45 Verify server endpoints
01:58 Add Apple Pay button container to HTML
02:48 Create the PaymentRequest object
03:53 Create the PaymentRequestButton element
04:23 Check if we can make payment
05:47 Listen for the paymentmethod event
07:46 Review requirements for testing Apple Pay
08:39 Setup a ngrok tunnel
09:36 Register an Apple Pay domain
11:20 Create a PaymentIntent on the server
11:57 Confirm the PaymentIntent
15:10 Test Apple Pay
16:00 Recap
### Presenter
CJ Avilla - Developer Advocate at Stripe - [ Ссылка ]
### Resources
Stripe.js documentation: [ Ссылка ]
Accept a payment documentation: [ Ссылка ]
Code: [ Ссылка ]
ngrok: [ Ссылка ]
### Support
If you have a question, please feel free to reach out to our support team on Discord at [ Ссылка ].
### Updates
Sign up to stay updated with developer news: [ Ссылка ]
### Feedback
If you have any feedback about this or other episodes, let us know: [ Ссылка ].
#Stripe #Payments
![](https://s2.save4k.ru/pic/5KcdQboA7Gc/maxresdefault.jpg)