Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit ed9c3e3

Browse files
authored
deprecation notices (#5413)
1 parent 99c17c4 commit ed9c3e3

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

guides/v2.3/graphql/mutations/set-payment-place-order.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ redirect from:
77
- /guides/v2.3/graphql/reference/quote-set-payment-place-order.html
88
---
99

10+
{:.bs-callout-warning}
11+
The `setPaymentMethodAndPlaceOrder` mutation has been deprecated. Use the [setPaymentMethodOnCart]({{page.baseurl}}/graphql/mutations/set-payment-method.html) and [placeOrder]({{page.baseurl}}/graphql/mutations/place-order.html) mutations instead. You can run the two methods in the same call if your use case allows it.
12+
1013
The `setPaymentMethodAndPlaceOrder` mutation sets the cart payment method and converts the cart into an order. The
1114
mutation returns the resulting order ID. You cannot manage orders with GraphQL, because orders are part of the backend.
1215
You can use REST or SOAP calls to manage orders to their completion.
@@ -28,7 +31,7 @@ Perform the following actions before using the `setPaymentMethodAndPlaceOrder` m
2831

2932
**Request**
3033

31-
``` text
34+
```graphql
3235
mutation {
3336
setPaymentMethodAndPlaceOrder(
3437
input: {

guides/v2.3/graphql/tutorials/checkout/checkout-payment-method.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ contributor_name: Atwix
1414
contributor_link: https://www.atwix.com/
1515
---
1616

17-
{:.bs-callout .bs-callout-tip}
17+
{:.bs-callout-tip}
1818
You must always set a payment method.
1919

2020
Use the following `cart` query to determine which payment methods which are available for your order.
@@ -23,7 +23,7 @@ Use the following `cart` query to determine which payment methods which are avai
2323

2424
**Request**
2525

26-
{:.bs-callout .bs-callout-info}
26+
{:.bs-callout-info}
2727
For logged-in customers, send the customer's authorization token in the `Authorization` parameter of the header. See ["Get customer authorization token"]({{ page.baseurl }}/graphql/get-customer-authorization-token.html) for more information.
2828

2929
```text
@@ -58,19 +58,19 @@ There are two mutation queries in GraphQl which can be use to set the payment me
5858

5959
|Mutation|Description|
6060
|--- |--- |
61-
|`setPaymentMethodOnCart`|Sets the payment method for your order|
62-
|`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|
61+
|`setPaymentMethodOnCart`|Sets the payment method for your order.|
62+
|`setPaymentMethodAndPlaceOrder`| **Deprecated** 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.|
6363

6464
### Set payment method on cart {#setPaymentMethodOnCart}
6565

6666
Use the `setPaymentMethodOnCart` mutation to set the payment method for your order. The value `checkmo` ("Check / Money order" payment method code) was returned in the query.
6767

6868
**Request**
6969

70-
{:.bs-callout .bs-callout-info}
70+
{:.bs-callout-info}
7171
For logged-in customers, send the customer's authorization token in the `Authorization` parameter of the header. See ["Get customer authorization token"]({{ page.baseurl }}/graphql/get-customer-authorization-token.html) for more information.
7272

73-
```text
73+
```graphql
7474
mutation {
7575
setPaymentMethodOnCart(input: {
7676
cart_id: "{ CART_ID }"
@@ -109,9 +109,12 @@ If the operation is successful, the response contains the code of the selected p
109109

110110
Use the `setPaymentMethodAndPlaceOrder` mutation to set the payment method and place the order.
111111

112+
{:.bs-callout-warning}
113+
The `setPaymentMethodAndPlaceOrder` mutation has been deprecated.
114+
112115
**Request**
113116

114-
```text
117+
```graphql
115118
mutation {
116119
setPaymentMethodAndPlaceOrder(input: {
117120
cart_id: "{ CART_ID }"

0 commit comments

Comments
 (0)