Перейти к основному содержанию
POST
/
api
/
v2
/
payments
/
checkout
Create Checkout
curl --request POST \
  --url https://api.example.com/api/v2/payments/checkout
{
  "plan": "vip",
  "payment_method": "stripe",
  "success_url": "https://yourapp.com/success",
  "cancel_url": "https://yourapp.com/cancel"
}
Returns a checkout_url. Redirect the user there to complete payment. For Stripe specifically: POST /api/v2/payments/stripe/create-session Apply promo code: POST /api/v2/payments/promo with {"code": "PROMO123"}