-
The PWA client uses the
setPaymentMethodOnCartmutation to set the payment method. -
The mutation returns a
Cartobject. -
The client runs the
placeOrdermutation, which creates an order and begins the authorization process. -
The application requests a secure token from the PayPal gateway.
-
The gateway response includes a secure token, a secure token ID, and the URL to use for requesting the form in step 9. This token secures the data for a one-time transaction and is valid for 30 minutes.
-
The
placeOrdermutation returns an order ID. The application does not return secure token information. The order has the statuspayment pending. -
The client runs the
getPayflowLinkTokenmutation to retrieve the secure token information. -
The application returns the token information.
-
The client displays a payment form in an iframe rendered from the URL specified by the
paypal_urlfrom thegetPayflowLinkTokenmutation response. When the customer completes the form, the client sends the payment information directly to the PayPal gateway, bypassing the application server. -
After PayPal processes the payment, the gateway runs a silent post request against the application server. As a result, the application sets the order status to processing, and the order is ready to be invoiced.
-
The PayPal gateway returns control of the customer's browser to the client.