Skip to main content
Mutation

startSpaceCheckout

Start paying for a plan. Returns the checkout URL to send the browser to.

Arguments

  • acceptedTermsBoolean!

    True once the customer has accepted the terms of service.

  • applePayBoolean

    True to pay with Apple Pay on Mollie's page, instead of a card token.

  • applePayTokenString

    The payment token from an Apple Pay sheet on our own page, JSON-encoded. The payment then completes in this request.

  • cardTokenString

    A token from Mollie's card fields. Without one, the answer is Mollie's own payment page.

  • The name and address for the invoices.

  • methodString

    Another method from spaceCheckoutMethods, paid on Mollie's page. Ignored with a card or Apple Pay token.

  • planID!

    The plan's identifier.

  • spaceIdID!

    The space's identifier.

Returns

String!

Example

mutation StartSpaceCheckout($acceptedTerms: Boolean!, $applePay: Boolean, $applePayToken: String, $cardToken: String, $details: BillingDetailsInput!, $method: String, $plan: ID!, $spaceId: ID!) {
  startSpaceCheckout(
    acceptedTerms: $acceptedTerms
    applePay: $applePay
    applePayToken: $applePayToken
    cardToken: $cardToken
    details: $details
    method: $method
    plan: $plan
    spaceId: $spaceId
  )
}