A payment API developers actually enjoy
Predictable REST endpoints, clear errors, idempotency, signed webhooks and a full sandbox — so you can integrate payments in an afternoon, not a quarter.
API at a glance
The PayJunction API is organized around REST, uses resource-oriented URLs, accepts JSON request bodies and returns JSON responses with standard HTTP status codes. Authenticate with secret keys, keep test and live environments fully separate, and use idempotency keys to safely retry any request.
curl https://api.payjunction.us.com/v1/payments \
-u sk_test_your_key: \
-H "Idempotency-Key: 8f1c2b7e" \
-d amount=4999 \
-d currency=usd \
-d source=tok_visa \
-d description="Order #1042"Illustrative example. Endpoint details are provided in the developer documentation available to registered accounts.
Developer features
Sandbox
Test cards, simulated declines and webhook replays in a separate test environment.
Idempotency
Safely retry requests without risking duplicate charges.
Signed webhooks
Verify every event with an HMAC signature and receive automatic retries.
Tokenization
Client-side tokenization keeps raw card data off your servers.
Pagination & filtering
Cursor-based lists with filters for created date, status and metadata.
Metadata
Attach your own key-value data to payments, customers and subscriptions.
Common integration flows
| Flow | Key resources |
|---|---|
| One-time payment | Tokens, Payments |
| Authorize now, capture later | Payments (capture=false), Captures |
| Save card for later | Customers, Payment Methods |
| Subscriptions | Plans, Subscriptions, Invoices |
| Refunds | Refunds |
| Payouts & reporting | Payouts, Balance Transactions |
Going live
- Build in test modeUse test keys and test cards to cover success, decline and 3-D Secure scenarios.
- Handle webhooksSubscribe to payment and dispute events and verify signatures.
- Complete account approvalSubmit your business details for review.
- Switch to live keysReplace test keys with live keys — no code changes required.
Prefer a plugin? See all integrations.
Frequently asked questions
Is there a sandbox environment?
Yes. Every account has a fully separate test mode with test keys, test cards and webhook testing.
How do I verify webhooks?
Each webhook includes a signature header generated with your endpoint secret. Recompute and compare it before trusting the event.
Which languages are supported?
Any language that can make HTTPS requests can use the REST API. Code samples cover common server languages.
Related
Ready to accept payments with PayJunction?
Tell us about your business and we'll prepare a quote and a setup plan.
Contact sales