Skip to content
Straddle Knowledge Base home
Straddle Knowledge Base home

How to Use Paykeys for Secure Transactions

Understanding Paykeys

Paykeys are unique tokens used to facilitate secure transactions. They are sensitive information and should be handled with care.

Storing Paykeys

  • Store the paykey token along with the id.

  • Use the token to create payments and the id to get history, bank status, etc.

Handling Paykey Errors

If you encounter a forbidden error when trying to unmask a paykey, it may be due to insufficient access permissions. Ensure you have the necessary access rights.

Creating a Customer and Paykey

  1. Create a customer using the appropriate API endpoint.

  2. Use the customer_id to create a paykey.

  3. Use the paykey_id to create a payout.

Using the API Playground

The API Playground can guide you through the process of creating customers and paykeys. Visit the API Reference for more details.

Troubleshooting

If you experience issues, check your API logs and ensure all tokens and IDs are correctly used. For further assistance, consult the API Logs.