This repository has been archived by the owner on Dec 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 156
[Checkout] Set Payment Method and Place Order Mutation #716
Milestone
Comments
4 tasks
m2-community-project
bot
added
Progress: PR created
and removed
Progress: PR created
labels
Jun 10, 2019
naydav
added a commit
to pmclain/graphql-ce
that referenced
this issue
Jun 20, 2019
naydav
added a commit
to pmclain/graphql-ce
that referenced
this issue
Jun 20, 2019
naydav
added a commit
to pmclain/graphql-ce
that referenced
this issue
Jun 20, 2019
naydav
added a commit
to pmclain/graphql-ce
that referenced
this issue
Jun 20, 2019
@pmclain @naydav, after discussion with @paliarush, we decided to remove mutation {
setPaymentMethodOnCart(
input:{
cart_id:$cart_id
payment_method:{
code:"braintree"
braintree:{
payment_method_nonce:"tokencc_bf_8tkr89_k5nj5d_yd3pwc_nmztby_ppz"
}
}
}
) {
cart {
selected_payment_method {
code
}
}
}
placeOrder(
input: {
cart_id: $cart_id
}
) {
order {
order_id
}
}
} This allows solving the potential issues related to data actualization between multiple requests. But at the same time, now, it will be a developer responsibility to define the order of mutations execution as it depends on payment integration features. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Preconditions (*)
The current frontend workflow allows setting payment methods and placing order in a single request.
@joni-jones notes in #392
A proposed schema for facilitating is below:
Example mutation:
The text was updated successfully, but these errors were encountered: