-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
magento/devdocs#: Add info about setPaymentMethodAndPlaceOrder to GraphQL checkout tutorial #4950
magento/devdocs#: Add info about setPaymentMethodAndPlaceOrder to GraphQL checkout tutorial #4950
Conversation
…phQL checkout tutorial
An admin must run tests on this PR before it can be merged. |
…phQL checkout tutorial
@@ -96,6 +106,44 @@ If the operation is successful, the response contains the code of the selected p | |||
} | |||
``` | |||
|
|||
### Set payment method and place order {#setPaymentMethodAndPlaceOrder} | |||
|
|||
Use the `setPaymentMethodAndPlaceOrder` mutation to set the payment method for your order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, add a clarification here
Use the `setPaymentMethodAndPlaceOrder` mutation to set the payment method for your order. | |
Use the `setPaymentMethodAndPlaceOrder` mutation to set the payment method and place the order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point @rogyar
fixed
…phQL checkout tutorial
@@ -96,6 +106,44 @@ If the operation is successful, the response contains the code of the selected p | |||
} | |||
``` | |||
|
|||
### Set payment method and place order {#setPaymentMethodAndPlaceOrder} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just realized that this mutation is not a part of 2.3.2 version. I would suggest splitting this PR into two separate PRs and making the PR with information about setPaymentMethodAndPlaceOrder
mutation to the develop branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created a separate PR #5000 to fix
- Remove
address_type
fromshipping_addresses
andbilling_addresses
. - Remove
label
fromselected_shipping_method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. The only change left is to create a PR to the develop
branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rogyar I will reset the target branch for this PR into the develop
branch immediately after the next time we sync master
and develop
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atwixfirster Just one technical question remains, then I can merge the PR.
|
||
**Response** | ||
|
||
If the operation is successful, the response contains the code of the selected payment method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this the order ID?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
order ID, @keharper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
…phQL checkout tutorial
running tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a bad link.
|Mutation|Description| | ||
|--- |--- | | ||
|`setPaymentMethodOnCart`|Sets the payment method for your order| | ||
|`setPaymentMethodAndPlaceOrder`|Sets the payment method and then immediately places your order. In this case ["Step 10. Place the order"]({{ page.baseurl }}/graphql/tutorials/checkout/checkout-place-order.md) can be skipped| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|`setPaymentMethodAndPlaceOrder`|Sets the payment method and then immediately places your order. In this case ["Step 10. Place the order"]({{ page.baseurl }}/graphql/tutorials/checkout/checkout-place-order.md) can be skipped| | |
|`setPaymentMethodAndPlaceOrder`|Sets the payment method and then immediately places your order. In this case ["Step 10. Place the order"]({{ page.baseurl }}/graphql/tutorials/checkout/checkout-place-order.html) can be skipped| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @keharper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed by @keharper ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atwixfirster I can't commit the change. I can only make a suggestion to fix it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how but you fixed that bug. I've pulled the changes and detected what md
extension has been replaced with html
.
Please run tests now.
Thank you!
…phQL checkout tutorial
…//github.com/atwixfirster/devdocs into add-info-about-setPaymentMethodAndPlaceOrder
…phQL checkout tutorial
running tests |
Hi @atwixfirster, thank you for your contribution! |
Thanks @atwixfirster |
@keharper Please add the whatsnew for this PR. Thx. |
Purpose of this pull request
This pull request (PR) adds information about
setPaymentMethodAndPlaceOrder
mutation and provides additional changes for "Step 4. Set the shipping address", "Step 5. Set billing address" "Step 6. Set the shipping method" pages.Affected DevDocs pages
Links to Magento source code
Thank you!
CC: @keharper
whatsnew
Updated the GraphQL checkout tutorial to include the
setPaymentMethodAndPlaceOrder
mutation.