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

Commit 7fd6961

Browse files
pmclainkeharper
authored andcommitted
Update docs for magento/graphql-ce#757 (#4912)
This PR removes the PaymentMethodAdditionalDataInput and moves its children up one level into the PaymentMethodInput.
1 parent 87777c7 commit 7fd6961

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

guides/v2.3/graphql/payment-methods/payflow-link.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The following diagram shows the workflow for placing an order when Payflow Link
1717

1818
## Additional Payment information
1919

20-
When you set the payment method to Payflow Link in the [`setPaymentMethodOnCart`]({{page.baseurl}}/graphql/reference/quote-payment-method.html) mutation, the `additional_data` object must contain a `payflow_link` object, which defines the following objects:
20+
When you set the payment method to Payflow Link in the [`setPaymentMethodOnCart`]({{page.baseurl}}/graphql/reference/quote-payment-method.html) mutation, the `payment_method` object must contain a `payflow_link` object, which defines the following objects:
2121

2222
{% include graphql/payment-methods/payflow-link-attributes.md %}
2323

@@ -32,12 +32,10 @@ mutation {
3232
setPaymentMethodOnCart(input: {
3333
payment_method: {
3434
code: "payflow_link"
35-
additional_data: {
36-
payflow_link: {
37-
return_url: "paypal/action/return.html"
38-
error_url: "paypal/action/error.html"
39-
cancel_url: "paypal/action/cancel.html"
40-
}
35+
payflow_link: {
36+
return_url: "paypal/action/return.html"
37+
error_url: "paypal/action/error.html"
38+
cancel_url: "paypal/action/cancel.html"
4139
}
4240
}
4341
cart_id: "IeTUiU0oCXjm0uRqGCOuhQ2AuQatogjG"

guides/v2.3/graphql/payment-methods/payflow-pro.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The following diagram shows the workflow for placing an order when Payflow Pro i
2121

2222
## Additional Payment information
2323

24-
When you set the payment method to Payflow Pro in the [`setPaymentMethodOnCart`]({{page.baseurl}}/graphql/reference/quote-payment-method.html) mutation, the `additional_data` object must contain a `payflowpro` object and a `CreditCardDetailsInput` object.
24+
When you set the payment method to Payflow Pro in the [`setPaymentMethodOnCart`]({{page.baseurl}}/graphql/reference/quote-payment-method.html) mutation, the `payment_method` object must contain a `payflowpro` object and a `CreditCardDetailsInput` object.
2525

2626
{% include graphql/payment-methods/payflow-pro-attributes.md %}
2727

@@ -37,14 +37,12 @@ mutation {
3737
cart_id: "IeTUiU0oCXjm0uRqGCOuhQ2AuQatogjG"
3838
payment_method: {
3939
code: "payflowpro"
40-
additional_data: {
41-
payflowpro: {
40+
payflowpro: {
4241
cc_details: {
43-
cc_exp_month: 12
44-
cc_exp_year: 2021
45-
cc_last_4: 1111
46-
cc_type: "VI"
47-
}
42+
cc_exp_month: 12
43+
cc_exp_year: 2021
44+
cc_last_4: 1111
45+
cc_type: "VI"
4846
}
4947
}
5048
}

0 commit comments

Comments
 (0)