Overview
Generate secure checkout URLs to direct customers to a payment page for your offerings. The checkout functionality allows you to create customized payment flows with optional billing intervals and pre-filled customer information.SDK available in
Javascript | Ruby | cURL | Python | PHP | Go | Java
Basic Checkout URL Generation
The simplest way to generate a checkout URL is by providing the offering key for customers who are already signed up in your system:Handling Customer Signup from Metrifox Checkout
If you’re using Metrifox’s pricing page but want to handle customer verification yourself, follow these steps:Step 1: Configure Your Signup URL
Set your signup URL in the Checkout section of your dashboard settings.Step 2: Extract Parameters and Handle Customer Signup
On your signup/login page (the URL configured above), extract theoffering_key and billing_interval query parameters from the URL. These are included when a customer is redirected from the Metrifox checkout page.
Step 3: Sync Customer with Metrifox
After verifying the customer, retrieve thecustomer_key which is the unique identifier of the customer on your platform, and use it along with the extracted parameters to generate a checkout URL. Remember to sync your new customer with Metrifox using customer.create from the SDK.
Step 4: Complete the Purchase
Redirect the customer to the generated URL so they can complete their order.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
offeringKey | string | Yes | The unique identifier for the offering to checkout |
billingInterval | string | No | Billing frequency (e.g., “monthly”, “yearly”) |
customerKey | string | Yes | Unique identifier of the customer making the purchase |
Checkout URLs are secure and time-limited. Generate them when needed rather than storing them for extended periods.

