#BlackHawk-custom-form-validation

1 messages ยท Page 1 of 1 (latest)

hollow egret
#

Hello ๐Ÿ‘‹
Let's chat here ๐Ÿ™‚
Do you mean you want to run validations once you click on apple pay or google pay button but before the popup windows shows up?

dawn radish
#

yes

#

so if there is an validation error, no need to actually popup the window for payment.

hollow egret
#

Ah okay let me think

#

You are using payment request button for this correct?

dawn radish
#

yeap

#

I used the preventDefault() on a click event and then run myself stripePaymentRequest.show() but this is not working ok, get some warnings and the popup is doesn' re-appear if canceled. Seems that I need to re-mount it? not sure whats wrong but don't feel I have taken the right/secure path for this

hollow egret
#

hmm yeah I'm not sure remounting it is the best way to go about it but I also don't see an event you can listen to here that'd let you run the validation.