Edit in GitHubLog an issue

syncPaymentOrder mutation

The syncPaymentOrder mutation synchronizes the payment order details for the PayPal Smart Buttons and Apple Pay payment methods. This mutation updates the quote with the shipping, billing, email, and phone number details. It returns a Boolean value indicating whether the synchronization was successful.

You must run this mutation after running the createPaymentOrder mutation.

Syntax

Copied to your clipboard
mutation {
syncPaymentOrder(
input: syncPaymentOrderInput!
)
}

Example usage

The following example runs the syncPaymentOrder mutation.

Request:

Copied to your clipboard
mutation {
syncPaymentOrder(input: {
cartId: "AJCY8dhIfuch9LcDHAxEkw7oG3DjGdKt"
id: "8J864634M9466143S"
})
}

Response:

Copied to your clipboard
{
"data": {
"syncPaymentOrder": true
}
}

Input attributes

The SyncPaymentOrderInput object must contain the following input attributes:

AttributeData TypeDescription
cartId
String!
The unique ID of the cart
id
String!
The unique order ID generated by PayPal
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.