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 (1)

Collapse
t0nyba11 profile image
Tony B

No experience at all in this, but most likely it is because the token cannot just be anything, but is a specific client-identifying value you need to get from the API.

Try community forums and stackoverflow for these sorts of problems. :)

paypal-community.com/t5/SDKs/Uncau...

🌚 Life is too short to browse without dark mode