Pria UI now available in Dark mode !
cURL
curl --request POST \ --url http://localhost:3000/api/user/stripe/subscribe \ --header 'Content-Type: application/json' \ --header 'x-access-token: <api-key>' \ --data ' { "priceId": "price_1234567890" } '
{ "success": true, "sessionId": "<string>", "url": "<string>" }
Creates a Stripe checkout session for subscribing to a plan
JWT token passed in x-access-token header
Stripe price ID to subscribe to
"price_1234567890"
Checkout session created successfully
true
Stripe checkout session ID
Stripe checkout URL to redirect user to
Was this page helpful?