Skip to main content

checkoutComplete

Completes the checkout. As a result a new order is created and a payment charge is made. This action requires a successful payment before it can be performed. In case additional confirmation step as 3D secure is required confirmationNeeded flag will be set to True and no order created until payment is confirmed with second call of this mutation.

checkoutComplete(
checkoutId: ID
id: ID
metadata: [MetadataInput!]
paymentData: JSONString
redirectUrl: String
storeSource: Boolean = false
token: UUID
): CheckoutComplete

Arguments

checkoutComplete.checkoutId ● ID scalar

The ID of the checkout.

DEPRECATED: this field will be removed in Saleor 4.0. Use id instead.

checkoutComplete.id ● ID scalar

The checkout's ID.

Added in Saleor 3.4

checkoutComplete.metadata ● [MetadataInput!] list input

Fields required to update the checkout metadata.

Added in Saleor 3.8

checkoutComplete.paymentData ● JSONString scalar

Client-side generated data required to finalize the payment.

checkoutComplete.redirectUrl ● String scalar

URL of a view where users should be redirected to see the order details. URL in RFC 1808 format.

checkoutComplete.storeSource ● Boolean scalar

Determines whether to store the payment source for future usage.

DEPRECATED: this field will be removed in Saleor 4.0. Use checkoutPaymentCreate for this action.

checkoutComplete.token ● UUID scalar

Checkout token.

DEPRECATED: this field will be removed in Saleor 4.0. Use id instead.

Type

CheckoutComplete object

Completes the checkout. As a result a new order is created and a payment charge is made. This action requires a successful payment before it can be performed. In case additional confirmation step as 3D secure is required confirmationNeeded flag will be set to True and no order created until payment is confirmed with second call of this mutation.


Was this page helpful?