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.
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.
Add Privex Pay to your codebase
Follow the code examples in this page or in your chosen documentation to create a payment session and redirect your customer to the hosted checkout.
Authentication
Pass your API key in thex-api-key header on every request. Keys start with pp_live_ and are created in the dashboard under Developers → API Keys.
API integration
Send aPOST with an items array. Each item needs a name, amount (per unit, in dollars), and optional quantity (defaults to 1). The total is computed automatically. Pass a single item for a one-product checkout, or many for a multi-line cart — same endpoint.
Create a payment session
checkout_url. Redirect your customer to this URL to complete payment on the Privex Pay hosted checkout page.
Response