CreateCreditGrant
Source:
src/Stripe/CreateCreditGrant.ts
Create a Stripe Credit Grant over HTTP. Account-scoped — binds the API key onto the host, not a specific grant resource.
Creating a Credit Grant at runtime
Section titled “Creating a Credit Grant at runtime”const create = yield* Stripe.CreateCreditGrant();const grant = yield* create({ customer: "cus_123", amount: { type: "monetary", monetary: { currency: "usd", value: 1000 } }, applicability_config: { scope: { price_type: "metered" } }, category: "promotional", name: "Welcome credits",});