I followed all the instructions (I think - see details at end of this post). In my shopping cart, there is a "Check out with PayPal" button in addition to the usual "go to checkout" button. I click on the PayPal button. During testing, at this point, I've actually had three different outcomes:
1) A screen comes up with a link to login to PayPal Developer Central. I click on that and login. Now I'm at the home page of the "PayPal Sandbox". (Previously, I did set up buyer and seller test accounts.) What am I supposed to do now?
2) Went back and tried again (same browser session?) - got an error in a PayPal sandbox window saying "Return to Merchant" and:
Code:
This transaction is invalid. Please return to the recipient's website to complete your transaction using their regular checkout flow.
3) Cleared out browser's cache and tried again: clicked on the PayPal button nothing happened. Clicked on it again and now I'm in "Step 1 of 4: Shipping" screen. (Yes, this is true; I did it again just to check. I had to click on the button twice.) I'm using COWOA exclusively. The shipping info screen has a shipping address for "Joe Smith" in San Jose, CA. I've never entered this address so it must be coming from some test data somewhere? I continue to the Payment screen: It shows my order total but nothing indicating that I'm about to make a PayPal payment and no "choices", just a ""continue checkout" button. I am able to continue all the way to "order complete". But nowhere was I every asked to enter my PayPal account info. In one of the debug emails, I see:
and the name and address is Joe Smith.
The first debug email (of many) has a subject of "getOverrideAddress - 4" and in it it says:
Code:
not logged in and not in markflow mode - nothing to override
The final debug email for this transaction has a subject of "PayPal Debug log - DoExpressCheckoutPayment, and contains this:
Code:
2009-01-31 09:55:29
-------------------
(sandbox transaction) --> https://pilot-payflowpro.verisign.com/transaction
Request Headers:
Array
(
[0] => Content-Type: text/namevalue
[1] => X-VPS-Timeout: 45
[2] => X-VPS-VIT-Client-Type: PHP/cURL
[3] => X-VPS-VIT-Integration-Product: PHP::Zen Cart - Payflow Pro
[4] => X-VPS-VIT-Integration-Version: 1.3.8a
)
Request Parameters: {DoExpressCheckoutPayment}
Array
(
[ITEMAMT] => 20.00
[SHIPPINGAMT] => 8.95
[AMT] => 28.95
[L_NUMBER0] => TMM001
[L_QTY0] => 1
[L_NAME0] => Meat or Motion T-Shirt Size: Medium
[L_AMT0] => 20.00
[L_TAXAMT0] => 0.00
[SHIPTONAME] =>
[SHIPTOSTREET] => 111 Main St.
[SHIPTOSTREET2] => Apt #301
[SHIPTOCITY] => San Jose
[SHIPTOSTATE] => CA
[SHIPTOZIP] => 95100
[SHIPTOCOUNTRYCODE] =>
[BUTTONSOURCE] => ZenCart-ECGW_us
[CURRENCY] => USD
[TOKEN] => EC-D99WCNVU1RDCHEQ6O
[PAYERID] => 1234567890123
[ACTION] => D
[TENDER] => P
[TRXTYPE] => S
[REQUEST_ID] => 1233413728
[USER] => myusername
[PWD] => ************
[PARTNER] => PayPal
[VENDOR] => myusername
)
Response:
Array
(
[RESULT] => 0
[PNREF] => E78P1AA15E13
[RESPMSG] => Approved
[AVSADDR] => Y
[AVSZIP] => Y
[TOKEN] => EC-D99WCNVU1RDCHEQ6O
[PAYERID] => 1234567890123
[PPREF] => PD07I5MK4A7OE924E
[CORRELATIONID] => 3a3204997455r
[FEEAMT] => 0.33
[PAYMENTTYPE] => instant
[PENDINGREASON] => completed
[REQUEST_ID] => 1233413728
[CURL_ERRORS] =>
)
What is the "normal" behavior supposed to be when I click on the PayPal button in the shopping cart while testing?
Does PayPal checkout work when checking out without an account?
I have Debug Mode set to log & email - I'm getting the emails but wish I could figure out where the actual log file is!
=======================================
Here's how I configured PayPal Website Payments Pro in Zen Cart:
I already had a business PayPal account, so I went into it and setup API Access, as instructed, and got all the API credential stuff. I then installed and enabled "PayPal Express Checkout" first, as instructed. Then I installed and enabled "PayPal Website Payments Pro".
I also set up a developer account with PayPal, got into my sandbox and set up seller and buyer test accounts.
Bookmarks