Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / PayPal Express Checkout support / Please explain PayPal Express data flow

Please explain PayPal Express data flow

Locked

Started by jgold723 on 7 Feb 2012, 2:00 PM · Views: 1,925

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
7 Feb 2012, 2:00 PM
#1
jgold723 avatar

jgold723

Zen Follower

Join Date:
Dec 2010
Posts:
362
Plugin Contributions:
0

Please explain PayPal Express data flow

Can someone please give me an explanation of the data flow/log file creation process for PayPal Express? We're trying to troubleshoot a sporadic problem in which the order process appears to be interrupted. I don't think it's just paypal, but paypal seems to have a very good logging function so I'm hoping this will help.

For example, I have a customer who tried and failed to place an order. In the paypal log directory, I found three files for SetExpressCheckout for this order, but none of the other log files that are usually created.

We're using 1.3.9h.

Thanks,

John

8 Feb 2012, 4:46 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Please explain PayPal Express data flow

  1. SetExpressCheckout -- tells PayPal about the basic details of the order, and receives a token from PayPal.
  2. Customer is redirected to PayPal using the token. The customer logs in and selects their funding method, and returns to your store.
  3. Your store sends a GetExpressCheckoutDetails request, to obtain address details about the customer, and create an account in your store if needed.
  4. If your customer had not been logged in and thus didn't have a change to select shipping details yet, your customer is then presented with shipping choices, asked to enter any coupons or gift certs on your site, see the calculated taxes, and is then taken to the Checkout Confirmation screen.
  5. When the customer clicks Confirm, a DoExpressCheckoutPayment request is sent to PayPal to actually complete the payment and move funds between accounts. When that finishes, your customer sees the checkout-success screen.

Step 4 might happen before step 1 if the customer has an account and was logged in and chose the normal checkout flow (not the orange button on the Shopping Cart or login screen) and thus chose the PayPal radio-button on the checkout-payment screen.

The 3 logs that are generated for each transaction are those highlighted. And they're generated in that order.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.