Payload.js provides a simple and secure client-side API and UI toolkit for accepting payments and interacting with our API. For a Payload.js React wrapper, see the Payload React library.
To include Payload.js in your project, include the
https://payload.co/Payload.js file in your project. See an example
<script> tag below:
To authenticate on the client side with Payload.js, use the
found under Settings > API Keys in your dashboard. Make sure not to use
secret_key. To authenticate, initialize
Payload with your
as shown below.
<script> Payload('client_key_AWcpDnNBB7oLfNqfQ6g66262'); </script>