User GuidePayment
Creem Configuration
Configure Creem cryptocurrency payment
Creem is a cryptocurrency payment solution for Web3 users.
Environment Variables
CREEM_API_KEY="your-creem-api-key"
CREEM_WEBHOOK_SECRET="your-creem-webhook-secret"
CREEM_SUCCESS_URL="https://yourdomain.com/payment-success"
CREEM_CANCEL_URL="https://yourdomain.com/payment-cancel"Webhook Configuration
Set Webhook endpoint:
https://yourdomain.com/api/payment/creem/webhookConfigure Pricing
export const paymentConfig = {
mode: 'one-time',
defaultProvider: 'creem',
oneTimePlans: [
{
id: 'pro',
name: 'Pro',
price: 299,
creemProductId: 'prod_xxx',
features: ['All features'],
}
]
}