Skip to content

[BUG] PayPal Button shows duplicate, double buttons #126

@OmerMessing

Description

@OmerMessing

To Do First

  • Did you try latest release? - Yes.
  • Did you look for existing matching issues? - Yes.

Software Package Version:
v2.6.3

Describe the bug

I see the PayPal button double, I tried downgrading to [email protected] but I still see the same result.
I tried moving the button in the page to different places in the code but it always shows double buttons.

The button is working but I also have this error in the console:

b.sbox.stats.paypal.com/v2/counter.cgi?p=uid_3890f557ca_mtu6mdc6nda&s=SMART_PAYMENT_BUTTONS:1 Failed to load resource: net::ERR_CONNECTION_REFUSED

To Reproduce

  1. Put the PayPalButton somewhere in your code with the required props and run the page on the browser.

Expected behavior

A single button is supposed to render.

Screenshots

Screen Shot 2022-05-23 at 18 21 42

Desktop (please complete the following information):

  • OS: [e.g. iOS] MacOS
  • Browser: [e.g. chrome, safari] Chrome
  • React Version: [e.g. 22] 18.0.0

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions