Setup Billing

Setup billing for a user - creates Stripe customer, RevenueCat user, and checkout session

Args: request: Billing setup request with redirect URLs current_user: Authenticated user db: Database session

Returns: BillingSetupResponse with customer ID and checkout URL

post/api/billing/setup

Request body

successUrlstring required
cancelUrlstring required

Response

Successful Response

successboolean
customerIdstring required
checkoutUrlstring required
checkoutSessionIdstring required

Changes