import type { IncomingHttpHeaders } from 'http'; export type StripeIntent = { amount:number; currency:string; description?:string; metadata?:Record<string,string> }; export async function createStripeIntent(intent: StripeIntent){ const key = process.env.STRIPE_SECRET_KEY||''; const enable = !!key && process.env.NETWORK_DISABLED!=='1'; // Lazy import to keep optional const Stripe = require('stripe'); const stripe = new Stripe(key, { apiVersion:'2023-10-16' });
platform ยท factory payments

Factory payments orchestration

factory payments

available bars phi-request-ontology-graph object
/rhiz/factory/src/lib/payments/stripe.ts