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.

Script Tag

To include Payload.js in your project, include the file in your project. See an example <script> tag below:

<script src=""></script>


To authenticate on the client side with Payload.js, use the client_key found under Settings > API Keys in your dashboard. Make sure not to use your secret_key. To authenticate, initialize Payload with your client_key as shown below.