Créer une session de paiement pour une offre
Autorisations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Corps
Offer SKU to purchase.
"mc-java-17"
1 <= x <= 1001
ID of the billing Plan to use. If omitted, the first (cheapest) active plan is used.
Selected egg variant (software choice, e.g. Velocity instead of the default Bungeecord). Must be the product default egg or one of its eggVariants; otherwise the checkout is rejected with a 400.
Selected config options, keyed by configOptionId → chosen value (matching a choice value in the option's choices JSON array).
Optional coupon code to apply at checkout. Validated against the Coupon table (must exist, be active, and not be expired).
"SUMMER25"
Gateway type to use for this checkout (e.g. "stripe", "manual"). When omitted, the default enabled gateway is used. A "manual" gateway leaves the invoice PENDING (awaiting payment) and returns no redirect URL.
"manual"
When true, apply the customer account credit balance to the order, capped at loyalty.max_credit_usage_percent (default 50%) of the post-coupon total. The credits are deducted atomically and the remaining balance is charged via the gateway. The customer always pays at least (100 − max)% out of pocket.
true
Réponse
Sujets connexes
Générer un lien de paiement brandé pour une factureCréer un SetupIntent pour enregistrer un moyen de paiementCréer une session Portail Client StripeBoutique et panierCréer une nouvelle clé API pour l’utilisateur courant