Payload.js

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 https://payload.co/Payload.js file in your project. See an example <script> tag below:

<script src="https://payload.co/Payload.js"></script>

Authentication

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.

<script>
Payload('client_key_AWcpDnNBB7oLfNqfQ6g66262');
</script>

Features