DEV Community

Bruce Axtens
Bruce Axtens

Posted on

As soon as I put in a "data-client-token", the PayPal button refuses draw. Any idea why?

In my page I have

<script src="https://www.paypal.com/sdk/js?client-id=REDACTED&enable-funding=venmo&currency=AUD" data-sdk-integration-source="button-factory"></script>

As soon as I put in a data-client-token, e.g.

<script src="https://www.paypal.com/sdk/js?client-id=REDACTED&enable-funding=venmo&currency=AUD" data-client-token="DEPOSIT" data-sdk-integration-source="button-factory"></script>

the button refuses to draw. Any clues as to why? According to the documentation, this additional markup is permitted.

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay