Documentation/Stripe & Providers/Pluggable Payment Gateways

Pluggable Payment Gateways (Stripe, Polar & Custom Wallets)

VibezCheck is gateway-agnostic. You can bill customers via Stripe, Polar.sh, or your custom internal coin wallet.

---

Polar.sh Gateway

typescript
model: vibezcheck('gpt-', {
customer: user.id,
billing: { provider: 'polar' },
})

---

Custom In-House Wallets

typescript
model: vibezcheck('gpt-', {
customer: user.id,
billing: {
charge: async (costUSD, event) => {
await userWallet.deduct(event.customerId, costUSD);
},
},
})
Page 17 of 18