Developer Docs

createSubscriptionFromCart

Finalises a subscription and returns payment details based on a cart/draft subscription identified by `X-Subscription-Token`.

Arguments

ArgumentDescription
input (CreateSubscriptionFromCartInput!)
Parameters for CreateSubscriptionFromCart

CreateSubscriptionFromCartInput Arguments

ArgumentDescription
returnUrl (String!)
The URL the user gets redirected to after completing payment
paymentPageUrl (String!)
The URL where the user can sign up for a new subscription

Return Fields

cart (Cart!)
payment (Payment)
paymentUrl (String)
returnUrl (String)
subscription (Subscription!)