You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
GraphQL: Add payflow_express and misc payment methods (#5158)
* checkpoint
* small fixes
* review comments
* remove additional_information from EC
* remove additional_information from all methods
* final adjustments
* link errors
Copy file name to clipboardExpand all lines: _includes/graphql/payment-methods/payflow-link-workflow.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,6 @@
16
16
17
17
1. The client displays a payment form in an iframe rendered from the URL specified by the `paypal_url` from the `getPayflowLinkToken` mutation response. When the customer completes the form, the client sends the payment information directly to the PayPal gateway, bypassing the Magento server.
18
18
19
-
1. After PayPal processes the payment, the gateway runs a silent post request against the Magento server. As a result, Magento sets the order status to pending, and the order is ready to be invoiced.
19
+
1. After PayPal processes the payment, the gateway runs a silent post request against the Magento server. As a result, Magento sets the order status to processing, and the order is ready to be invoiced.
20
20
21
-
1. The PayPal gateway returns control of the customer's browser to the client.
21
+
1. The PayPal gateway returns control of the customer's browser to the client.
Copy file name to clipboardExpand all lines: guides/v2.3/graphql/payment-methods/authorize-net.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,32 +30,30 @@ The client's browser then posts the nonce to the Magento server along with all t
30
30
31
31
## Additional payment information
32
32
33
-
When you set the payment method to `authorizenet_acceptjs` in the [`setPaymentMethodOnCart`]({{page.baseurl}}/graphql/reference/quote-payment-method.html) mutation, the `additional_data` object must contain an `authorizenet_acceptjs` object.
33
+
When you set the payment method to `authorizenet_acceptjs` in the [`setPaymentMethodOnCart`]({{page.baseurl}}/graphql/reference/quote-payment-method.html) mutation, the payload must contain an `authorizenet_acceptjs` object.
34
34
35
35
Attribute | Data Type | Description
36
36
--- | --- | ---
37
37
`cc_last_4` | Int! | The last four digits of the credit or debit card
38
38
`opaque_data_descriptor` | String! | Authorize.Net's description of the transaction request
39
39
`opaque_data_value` | String! | The nonce returned by Authorize.Net
40
40
41
-
## Example setPaymentMethodOnCart mutation
41
+
###Example usage
42
42
43
43
The following example assigns the `authorizenet_acceptjs` payment method to the specified cart.
title: Express Checkout for other PayPal solutions
4
+
---
5
+
6
+
Set the payment method code to `payflow_express` to process Express Checkout transactions when the payment method is set to any of the following:
7
+
8
+
- Payflow Link
9
+
- Payflow Pro
10
+
- Payments Advanced
11
+
- Payments Pro
12
+
13
+
PayPal Express Checkout enables customers to pay by credit card or from the security of their personal PayPal accounts. During checkout, the customer is redirected to the secure PayPal site to complete the payment information. The customer is then returned to the store to complete the remainder of the checkout process.
14
+
15
+
From a GraphQL integration standpoint, this payment method is identical to the [PayPal Express Checkout]({{page.baseurl}}/graphql/payment-methods/payflow-link.html) payment method, with the exception that in the `setPaymentMethodOnCart` mutation, the payment method `code` is set to `payflow_express`.
16
+
17
+
## PayPal Express Checkout workflow
18
+
19
+
The following diagram shows the workflow for placing an order when `payflow_express` is the specified payment method.
The following steps describe the flow of calls required to complete a typical PayPal Express Checkout authorization. A successful purchase requires that you send three mutations to PayPal, and the buyer must approve the purchase by logging in to PayPal.
24
+
25
+
{% include graphql/payment-methods/paypal-express-checkout-workflow.md %}
26
+
27
+
## `setPaymentMethodOnCart` mutation
28
+
29
+
When you set the payment method to one of the Express Checkout payment solutions discussed in this topic, you must set the `code` attribute to `payflow_express`. In addition, the payload must contain a `payflow_express` object, which defines the following attributes:
30
+
31
+
{% include graphql/payment-methods/paypal-express-checkout-attributes.md %}
32
+
33
+
### Example usage
34
+
35
+
The following example shows the `setPaymentMethodOnCart` mutation with the `code` set to `payflow_express`.
Copy file name to clipboardExpand all lines: guides/v2.3/graphql/payment-methods/payflow-pro.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,12 @@ title: PayPal Payflow Pro payment method
5
5
6
6
Payflow Pro is a payment gateway that processes debit and credit card payments. It is available for customers of the United States, Canada, Australia, and New Zealand.
7
7
8
+
Other PayPal solutions have the same GraphQL workflow as Payflow Pro. The information in this topic also applies to the following PayPal solution:
9
+
10
+
- Payments Pro
11
+
12
+
If Payflow Pro has been configured to implement Express Checkout, use the [PayPal Express Checkout for Payflow payment method]({{page.baseurl}}/graphql/payment-methods/payflow-express.html) instead.
13
+
8
14
## Payflow Pro workflow
9
15
10
16
The following diagram shows the workflow for placing an order when Payflow Pro is the selected payment method.
@@ -19,13 +25,13 @@ When you set the payment method to Payflow Pro in the [`setPaymentMethodOnCart`]
19
25
20
26
{% include graphql/payment-methods/payflow-pro-attributes.md %}
21
27
22
-
## Example setPaymentMethodOnCart mutation
28
+
###Example usage
23
29
24
30
The following example shows the `setPaymentMethodOnCart` mutation constructed for the Payflow Pro payment method.
Copy file name to clipboardExpand all lines: guides/v2.3/graphql/payment-methods/payments-advanced.md
+21-19Lines changed: 21 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,9 @@ group: graphql
3
3
title: PayPal Payments Advanced payment method
4
4
---
5
5
6
-
The PayPal Payments Advanced payment solution allows merchants to enable their online stores to collect payments directly via credit card, PayPal Express Checkout, or PayPal's PayPal Credit service. From a GraphQL integration standpoint, PayPal Payments Advanced payment method is identical to the PayPal [Payflow Link]({{page.baseurl}}/graphql/payment-methods/payflow-link.html) payment method, with the exception of the payment method `code`. The PayPal [Payments Advanced documentation](https://developer.paypal.com/docs/classic/products/paypal-payments-advanced/) describes other ways in which the payment methods differ.
6
+
The PayPal Payments Advanced payment solution allows merchants to enable their online stores to collect payments directly via credit card or from the PayPal Credit service. If Payments Advanced has been configured to implement Express Checkout, use the [PayPal Express Checkout for Payflow payment method]({{page.baseurl}}/graphql/payment-methods/payflow-express.html) instead.
7
+
8
+
From a GraphQL integration standpoint, PayPal Payments Advanced payment method is identical to the PayPal [Payflow Link]({{page.baseurl}}/graphql/payment-methods/payflow-link.html) payment method, with the exception of the payment method `code`. The PayPal [Payments Advanced documentation](https://developer.paypal.com/docs/classic/products/paypal-payments-advanced/) describes other ways in which the payment methods differ.
7
9
8
10
PayPal Payments Advanced is available in the US and Canada only.
9
11
@@ -17,36 +19,36 @@ The following diagram shows the workflow for placing an order when Payments Adva
17
19
18
20
## Additional Payment information
19
21
20
-
When you set the payment method code to `payflow_advanced` 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 attributes:
22
+
## `setPaymentMethodOnCart` mutation
23
+
24
+
When you set the payment method to PayPal Payments Advanced, you must set the `code` attribute to `payflow_advanced`. In addition, the payload must contain a `payflow_link` object, which defines the following attributes:
21
25
22
26
{% include graphql/payment-methods/payflow-link-attributes.md %}
23
27
24
-
## Example setPaymentMethodOnCart mutation
28
+
###Example usage
25
29
26
30
The following example shows the `setPaymentMethodOnCart` mutation constructed for the Payments Advanced payment method.
Copy file name to clipboardExpand all lines: guides/v2.3/graphql/payment-methods/paypal-express-checkout.md
+12-18Lines changed: 12 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,12 @@ group: graphql
3
3
title: PayPal Express Checkout payment method
4
4
---
5
5
6
-
The PayPal Express Checkout payment method enables customers to pay by credit card or from the security of their personal PayPal accounts. During checkout, the customer is redirected to the secure PayPal site to complete the payment information. The customer is then returned to your store to complete the remainder of the checkout process.
6
+
The PayPal Express Checkout payment method enables customers to pay by credit card or from the security of their personal PayPal accounts. During checkout, the customer is redirected to the secure PayPal site to complete the payment information. The customer is then returned to the store to complete the remainder of the checkout process.
7
7
8
-
The merchant can use PayPal Express Checkout as a standalone option, or combine it with one of these other PayPal payment solutions:
8
+
Some alternate PayPal solutions have the same GraphQL workflow when Express Checkout is enabled. The information in this topic also applies to the following PayPal solutions:
9
9
10
-
- PayPal Payflow Link
11
-
- PayPal Payment Standard
12
-
- Website Payments Standard (Australia only)
13
-
- Website Payments Standard (United Kingdom only)
14
-
15
-
When these other payment solutions are combined with PayPal Express Checkout, they use the same workflow as PayPal Express Checkout. From the GraphQL perspective, the only difference is the payment method `code` specified in the `setPaymentMethodOnCart` mutation.
10
+
- Payments Standard
11
+
- Website Payments Standard
16
12
17
13
## PayPal Express Checkout workflow
18
14
@@ -24,13 +20,13 @@ The following steps describe the flow of calls required to complete a typical Pa
24
20
25
21
{% include graphql/payment-methods/paypal-express-checkout-workflow.md %}
26
22
27
-
## Additional Payment information
23
+
## `setPaymentMethodOnCart` mutation
28
24
29
-
When you set the payment method code to `paypal_express` in the `setPaymentMethodOnCart` mutation, you must also specify attributes specific to this payment method in `additional_data` object. These attributes are defined in the `paypal_express` object:
25
+
When you set the payment method to Express Checkout, you must set the `code` attribute to `paypal_express`. In addition, the payload must contain a`paypal_express` object, which defines the following attributes:
30
26
31
27
{% include graphql/payment-methods/paypal-express-checkout-attributes.md %}
32
28
33
-
## Example setPaymentMethodOnCart mutation
29
+
###Example usage
34
30
35
31
The following example shows the `setPaymentMethodOnCart` mutation constructed for the PayPal Express payment method.
0 commit comments