简体中文
学习如何将Creem与ShipThing集成。
Secret key
Publishable key
.env.local
CREEM_API_KEY= CREEM_WEBHOOK_SECRET=
creem
import { creem } from '@repo/payments';
/api/creem/checkout
const response = await fetch('/api/creem/checkout', { // change to `/api/creem/checkout` method: 'POST', body: JSON.stringify({ priceId: item.priceId, interval: item.interval, }), });
apps/web/api/creem/checkout/route.ts