Pay

Pay mutation

The Pay mutation allows you to apply payments to existing unpaid orders.

mutation {
pay(
orderId: "cjhaa6arpv1cp0b61ppfpdbha",
token: "tok_visa"
) {
id
status
reference
currency
createdAt
}
}

Input types

Payment object

Name

Type

Required

Description

orderId

String

Yes

The ID of the Order you wish to apply payment

token

String

Yes

The Stripe token

Response object

  • id

  • order

  • status

  • reference

  • currency

  • createdAt