If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

PayPal Express Checkout - Sandbox testing

I'm not having any success with this, so in the aim of converting this into documentation, here we go... please correct my assumptions.

Login to Developer site using the credentials of the Paypal account that you will be using for your shop.
Create two sandbox accounts (may be auto-created):
1) Business type, the credentials of which will be used in ZC module configuration.
2) Personal type, which will be the test/buyer account.

I have a vanilla 157 site on a separate server from my production site.

After entering these details and attempting a transaction, whether using InContext or old, I get bounced back to the 2/3 checkout payment page with an error:

The address information you entered does not appear to be valid or cannot be matched. Please select or add a different address and try again. (10736) 10736 Shipping Address Invalid City State Postal Code - A match of the Shipping Address City, State, and Postal Code failed.

At no point am I asked for PayPal login credentials.
Neither do I see anywhere to "tell" PayPal the address/domain of this test site.

From the site, the ipcheck is ok, the curtester is ok apart from tlstest.paypal.com being permanently offline.
From Paypal developer, the IPN simulator reports that it connects.

Re: PayPal Express Checkout - Sandbox testing

Hi Torvista,

I'm not sure how much address data PayPal actually matches, the one obvious thing to me is your test account zipcode is wrong. Californian zipcodes start with 9 so it possibly is failing at that point.

Re: PayPal Express Checkout - Sandbox testing

Originally Posted by torvista

PayPal never offers a login, so should not be trying to match anything at this point.

yeah i think that's wrong, and you should enter a valid US shipping address.

Code:

gnome: # grepp _TEXT_ADDR_ERROR
modules/payment/paypaldp.php:1882: if ($response['L_ERRORCODE0'] == 10736) $errorText = MODULE_PAYMENT_PAYPALDP_TEXT_ADDR_ERROR;
modules/payment/paypalwpp.php:2913: if ($response['L_ERRORCODE0'] == 10736) $errorText = MODULE_PAYMENT_PAYPALWPP_TEXT_ADDR_ERROR;
languages/english/modules/payment/paypaldp.php:45: define('MODULE_PAYMENT_PAYPALDP_TEXT_ADDR_ERROR', 'The address information you entered does not appear to be valid or cannot be matched. Please select or add a different address and try again.');
languages/english/modules/payment/paypalwpp.php:47: define('MODULE_PAYMENT_PAYPALWPP_TEXT_ADDR_ERROR', 'The address information you entered does not appear to be valid or cannot be matched. Please select or add a different address and try again.');

when i searched the ZC code for your error, it clearly looks like there is a $response that indicates the error. without digging further, it seems unlikely that the $response var is not something that came back from paypal.

in addition, changing the shipping address to a valid shipping address is such an easy solution to test out as opposed to sticking to your guns about the paypal login.

Re: PayPal Express Checkout - Sandbox testing

I took a hammer to it and set[ADDROVERRIDE] = 0
in the module code, to see what hapened...and the login came up and the order proceeded, producing multiple orders and a white page of death on confirmation,
with
PHP Fatal error: Uncaught Error: Call to undefined method paypalwpp:ayment_status() in /home/...../zencart-157/includes/modules/payment/paypalwpp.php:498

Further investigation leads me to conclude this payment process does not work as I expected....so need to waste more time on this....