Lune Pay
Lune Pay is a hosted payment page that enables you to collect payments for carbon credits without acting as an intermediary. Simply embed the Lune Pay URL in your offerings, and Lune handles the rest!With Lune Pay, you can:- Offer carbon offsetting as a service to your customers.
- Stay out of the flow of funds.
- Embed seamlessly with a single URL.
Pre-requisites
Complete the following setup steps before using this guide:
Set up Client Accounts to offset emissions for your individual customers.

Review carbon credit orders and how to allocate project bundles.
1. Generate and embed an Lune Pay URL
Lune Pay URLs follow the following format:https://pay.lune.co/{CLIENT_ACCOUNT_ID}
where {CLIENT_ACCOUNT_ID}
is the unique identifier for the client that is making the payment.You can test the entire Lune Pay flow, including payment outcomes, without real money movement. Use a client account ID from a test account, which you can create in your Lune dashboard.
quantity
redirect_url
redirect_label
external_id
bundle_id
Example URL
The following URL directs the user to a payment page for 100 tonnes CO₂e and displays several project bundles on the page that the user can select.2. Handle redirects
After completing a payment, the user sees a confirmation page with a "Back to{redirect_label}
" button. Clicking this button redirects the user to the redirect_url
you provided in the embed link. The redirect_label
is also provided in the embed link.Lune automatically appends two query parameters to the redirect_url
for transaction reconciliation:external_id
temporary_id
Example redirect URL
The following URL will redirect back to your app, with your external ID and a temporary ID for the payment.https://yourapp.com/confirmation?external_id=12345&temporary_id=abcde
The temporary ID can be used in the Get payment by temporary ID
endpoint to retrieve details for 15 minutes after payment processing. See a sample request below: