Integrate the payment flow
Follow the complete path from API credentials to production launch.
Start from an example
Create an invoice, handle a callback, and retrieve invoices from the API.
Choose an SDK
Use the TypeScript or PHP SDK to integrate the Billions API.
Connect a store
Add Billions to WooCommerce with the official plugin.
How the integration works
1
Create an invoice
Your backend sends the amount, currency, order reference, callback URL, and
an idempotency key to Billions.
2
Redirect the customer
Open the returned
invoice_url. The customer completes payment on the
Billions-hosted page.3
Receive a callback
Billions notifies your callback endpoint that the invoice may have changed.
4
Verify with the API
Retrieve the invoice from the authenticated API and update the order only
from that response.
Choose a path
- Building a custom application? Start with the integration guide.
- Using Node.js or another TypeScript runtime? See the TypeScript SDK.
- Building with PHP 8.1 or newer? See the PHP SDK.
- Running WooCommerce? Install the WooCommerce integration.