checkout.ts
1
import { renew } from "@renew.sh/sdk";2
3
const client = renew({4
secretKey: process.env.RENEW_SECRET_KEY!,5
});6
7
const collection = await client.collections.create({8
amount: order.total,9
currency: "NGN",10
reference: order.id,11
settlement: "default",12
});13
14
return collection.checkoutUrl;CollectionsAPI & SDK.
Collect local fiat payments across fiat-first markets with a developer-friendly API and SDK, tied cleanly to your order reference.
