- Hosted pricing page: your frontend sends the customer to Crovver’s pricing page, where they pick a plan and pay. This needs only the React SDK.
- Backend checkout: your backend creates a checkout for a plan you choose and redirects the customer to pay. Use this when you build your own pricing page.
Hosted pricing page
1. Send the customer to the pricing page
tenantId, tenantName, userId and metadata.userEmail.
2. The customer picks a plan and pays
- Free plan: the subscription is active immediately. No payment provider is involved.
- Stripe: the customer pays on Stripe’s checkout page. Crovver activates the subscription when Stripe confirms the payment, usually within seconds.
- ConnectIPS: the customer pays on the gateway’s page, then comes back. Crovver confirms the payment with the gateway before activating.
3. The customer comes back
The customer lands on Crovver’s confirmation page, then returns to your app. Refresh the subscription when they arrive:isActive, canAccess, or the subscription.activated webhook.
Backend checkout
Create the checkout from your backend with the secret key, then redirect the customer to the returned URL:totalCapacityUnits. For a D2C product, omit externalTenantId: the customer is keyed on externalUserId.
A free plan needs no provider. Its response has isFree: true and a successUrl instead of a checkoutUrl.
When checkout is refused
The billing page
Once subscribed, customers manage billing on Crovver’s billing page: invoices, cancellation, seats and add-ons. Send them there withredirectToBilling() from useBillingRedirect.
The first time a customer opens the billing page in a browser, Crovver emails a one-time sign-in link to the customer’s billing email. The link is valid for 15 minutes, and the sign-in lasts 7 days in that browser. A customer without a billing email sees a message asking them to contact you, so always set one. See Customers.
Checkout itself never asks for this sign-in.