curl --request POST \
--url http://0.0.0.0:3000/v1/billing/product-checkout-sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productId": 1,
"redirectUrl": "https://app.example.com/products"
}
'{
"status": true,
"data": {
"checkoutUrl": "https://checkout.stripe.com/pay/cs_test_xxx"
}
}curl --request POST \
--url http://0.0.0.0:3000/v1/billing/product-checkout-sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"productId": 1,
"redirectUrl": "https://app.example.com/products"
}
'{
"status": true,
"data": {
"checkoutUrl": "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