Skip to content

Event listener onError goes ballistic #9

@KevinOl

Description

@KevinOl

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions