Skip to main content
Integrate the OwnPay API in 5 minutes. Assumes you have an OwnPay instance running and admin access to generate API keys.

Step 1: Generate your API key

  1. Log in to your OwnPay admin panel
  2. Go to Developers > Developer Hub
  3. Click Generate API Key
  4. Choose Full Access (or Read-Only for testing)
  5. Copy both the Public Key and Secret Key
Your keys look like:
Never commit API keys to git. Use environment variables instead.

Step 2: Choose your SDK

Step 3: Create your first payment

After creating a payment, you get back:
The checkout_url is where your customer makes the payment.

Step 4: Handle webhooks

When your customer completes a payment, OwnPay sends a webhook to your endpoint.

Configure your webhook endpoint

  1. Go to Developers > Webhook Settings
  2. Enter your endpoint URL: https://yourapp.com/webhooks/ownpay
  3. Copy the Webhook Signing Secret
  4. Click Save

Verify webhook signatures

PHP:
Node.js:

Step 5: Test your integration

Test mode

  1. In your admin panel, go to Gateways
  2. Set the gateway to Test Mode
  3. Use test card numbers:

API quick reference

Next steps

Last modified on July 16, 2026