-
On the checkout page, the customer selects Credit Card as the payment method and enters the credit card information as well as the billing and shipping addresses. When the customer clicks Place Order, the PWA client uses the
setPaymentMethodOnCartmutation to set the payment method topayflowpro. -
The mutation returns a
Cartobject. -
The client runs the
createPayflowProTokenmutation to initiate a transaction. -
The application requests a secure token from the PayPal gateway. The request also contains billing and shipping information, which the application extracts from the
Cartobject. -
The gateway response includes a secure token, a secure token ID, and result codes and descriptions.
-
The application returns the secure token, a secure token ID, and result codes and descriptions in response to the
createPayflowProTokenmutation. -
The client uses a hidden iframe to send a silent post request directly to the PayPal gateway for account verification. For live requests, send the silent post to
https://payflowlink.paypal.com. Send test requests tohttps://pilot-payflowlink.paypal.com. -
The gateway responds directly to the client. The response contains a payload that includes secure token information and billing and shipping information.
-
The client uses the
handlePayflowProResponsemutation to send the payload to the applicaion. The application stores this information without modifying the cart. -
The mutation returns a
Cartobject. -
The client runs the
placeOrdermutation, which creates an order and begins the authorization process. -
The application sends an authorization request to the gateway.
-
The gateway sends the response to Magento.
-
The application creates an order and sends an order ID in response to the
placeOrdermutation.