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="" data-sdk-integration-source="button-factory"></script>

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

<script src="" 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)

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. :)

🌚 Life is too short to browse without dark mode