Рет қаралды 30,800
Learn the front end steps for accepting a payment with Google Pay from your customers using a custom form with 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 - • Accept a payment - Cre...
Python - • Video
Node.js - • Accept a payment - Cre...
Go - • Accept a payment - Cre...
Java - • Accept a payment - Cre...
.NET - • Accept a payment - Cre...
PHP - • Accept a payment - Cre...
Table of contents
00:00 Introduction
00:51 Confirm server endpoints
01:52 Code base tour
03:27 Add div container for Google Pay button
04:00 Create google-pay.js
04:50 Create a Payment Request object
06:16 Create a Payment Request Button element
07:00 Check if the user can make a Google Pay payment
09:00 Listen for the paymentmethod event
10:50 Review Google Pay test requirements
11:28 Setup ngrok
12:40 Create the payment intent on the server
13:48 Confirm the Google Pay payment
18:52 Recap
Presenter
Dawn Lambeth - Developer Advocate at Stripe - / dawnlambeth
Resources
Getting started with Stripe.js: • Getting started with R...
Stripe.js documentation: stripe.com/docs/js
Accept a payment documentation: stripe.com/docs/payments/acce...
Code: github.com/stripe-samples/acc...
ngrok: ngrok.com/
Support
If you have a question, please feel free to reach out to our support team on Discord at stripe.com/go/developer-chat.
Updates
Sign up to stay updated with developer news: go.stripe.global/dev-digest
Feedback
If you have any feedback about this or other episodes, let us know: forms.gle/VjNqzRhotM2snYo88.
#Stripe #Payments