Hi,
debugging and handling errors locally with
paymentButton.on("error", () => {});
When errors are thrown the event listener goes into an infinite call and crashes my safari/chrome. It is asif something is being re-triggered (call to apple or google pay?) from the payment button js file. Therefore, call/error, call/error...
I am not sure where to call paymentButton.off('error'). I tried immediately inside onError but...not sure if that is where it should be.
Suggestion?
Hi,
debugging and handling errors locally with
paymentButton.on("error", () => {});When errors are thrown the event listener goes into an infinite call and crashes my safari/chrome. It is asif something is being re-triggered (call to apple or google pay?) from the payment button js file. Therefore, call/error, call/error...
I am not sure where to call paymentButton.off('error'). I tried immediately inside onError but...not sure if that is where it should be.
Suggestion?