Charge in your app, grant access in your service
A payment takes two pieces of code. Your app starts a checkout for the signed-in user, and Forte works out the tax. When the payment completes or is refunded, Forte calls a route in your service, which decides what the customer gets.
Read the checkout guide about Charge in your app, grant access in your serviceconst { stripeClientSecret, stripePublishableKey, stripeConnectedAccountId } = await forte.users.createCheckout({ projectId, createCheckoutRequest: { currency: "usd", lineItems: [ { description: "Onboarding session", unitAmountCents: 15000, quantity: 1, taxCode: "txcd_20030000" }, ], subscriptions: [{ interval: "MONTH", lineItems: [ { description: "Pro plan (monthly)", unitAmountCents: 2500, quantity: 1, taxCode: "txcd_10000000" }, ], }], customerAddress, }, }); const stripe = await loadStripe(stripePublishableKey, { stripeAccount: stripeConnectedAccountId });const elements = stripe.elements({ clientSecret: stripeClientSecret });elements.create("payment").mount("#payment-element");app.post("/hooks/payments", async (req, res) => { // Forte strips this header from outside traffic, so only Forte can send it. if (req.get("X-Forte-Trusted") !== "1") return res.sendStatus(403); const { userId, paymentId, state } = req.body; if (state === "COMPLETED") await grantPlan(userId, paymentId); if (state === "REFUNDED") await revokePlan(userId, paymentId); res.sendStatus(200);});See every payment from the console
Revenue, refunds and top products for the last 30 days, then every payment with its line items, tax, subscription and refund history. Pick a task below and do it yourself in the console.
Read the docs about See every payment from the consoleHandle subscriptions, saved methods, and refunds
- Take one-time payments with cards or ACH direct debit.
- Save payment methods, calculate tax, and issue refunds.
- Run subscriptions with recurring charges and a grace period for failed renewals.
- Deliver payment triggers to your services for product access and follow-up work.
From the Forte blog
See the full path from deployment to a test payment
Follow a practical SaaS architecture through hosting, sign-in, persistent data, payment handling, and production diagnostics.