#pkcdeepu-custom-validation
1 messages · Page 1 of 1 (latest)
you can listen to paymentmethod event [0] and check the paymentMethod details which contains the billing details like name, email etc [1] which you can use for the validation.
[0] https://stripe.com/docs/js/payment_request/events/on_paymentmethod
[1] https://stripe.com/docs/api/payment_methods/object?lang=go#payment_method_object-billing_details
Complete reference documentation for the Stripe JavaScript SDK.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
that's how you can do the validation
but make sure you call complete function to close the Google Payment sheet before you call the update
paymentRequest.on('paymentmethod', function(ev) {
.....
ev.complete('fail');
...
// update
})
how to close google, apple pay popup using javascript
ev.complete('fail');
How to disable apple pay google pay button once user clicked on buttone