curl --request POST \
--url http://0.0.0.0:3000/v1/billing/checkout-sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"planId": 2,
"redirectUrl": "https://app.example.com/billing/success"
}
'{
"url": "https://checkout.stripe.com/pay/cs_test_xxx"
}curl --request POST \
--url http://0.0.0.0:3000/v1/billing/checkout-sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"planId": 2,
"redirectUrl": "https://app.example.com/billing/success"
}
'{
"url": "https://checkout.stripe.com/pay/cs_test_xxx"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Checkout session created
URL do checkout Stripe