I'm implementing Apple Pay on my web app using Apple Pay JS API.
Before creating a new ApplePaySession
, how can I check that Payment is already authorized and there is no need to create a new apple pay session for current transaction?
appreciate any thoughts.
Create a global variables and set it to false, onPaymentAuthorization event set it to true and use it for your check where it's required. let say -