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).

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

#google #stripe.js

Accept a Google Pay payment with Stripe.js
1.35 GEEK