Privex Pay gives you multiple integration paths depending on your platform and technical requirements. You can connect using the REST API directly, use a platform SDK for web or mobile, or install a pre-built plugin for popular e-commerce platforms. Most integrations go live in under 15 minutes.Documentation Index
Fetch the complete documentation index at: https://privexpay.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Before you integrate, you need a Privex Pay merchant account with API credentials. See Account setup to create your account and retrieve your API key.
Integration options
REST API
Make direct HTTP requests to the Privex Pay API. Works with any language or framework.
SDKs
Use a platform SDK for JavaScript, mobile, or server-side languages to simplify integration.
Plugins
Install a pre-built plugin for your e-commerce platform — no custom code required.
How to integrate
Get your API credentials
Log in to your Privex Pay dashboard, navigate to Settings → API keys, and copy your secret key. Keep this value private — never expose it in client-side code.
Choose your integration method
Select the API, SDK, or plugin approach that best fits your stack. See the examples below for API and JavaScript SDK usage.
Add Privex Pay to your codebase
Follow the code examples in this page or in your chosen SDK’s documentation to create a payment session and redirect your customer to the hosted checkout.
Test in sandbox mode
Use your sandbox API key (available in the dashboard under Settings → API keys → Sandbox) to run test transactions before going live. Use the test card number
4111 1111 1111 1111 with any future expiry date.API integration
The Privex Pay API is a REST API that accepts JSON. To initiate a payment, you create a payment session by sending aPOST request to /v1/sessions. The API returns a checkout_url that you redirect your customer to.
Authentication
Pass your secret API key in theAuthorization header as a Bearer token on every request.
Create a payment session
checkout_url. Redirect your customer to this URL to complete payment on the Privex Pay hosted checkout page.
Response
Add a checkout button (HTML)
Once you have acheckout_url from your server, you can use a simple button to send your customer to checkout:
HTML
{{ checkout_url }} with the URL returned by your server after creating the session.