Zen Cart Logo
Forums / PayPal Express Checkout support / paypal express how to install? and localhost issues

paypal express how to install? and localhost issues

Locked

Views: 9,058

Results 1 to 20 of 26
This thread is locked. New replies are disabled.
12 Mar 2007, 4:28 AM
#1
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

paypal express how to install? and localhost issues

hi,

I will start this thread on a specific questions as opposed to a general one earlier. I want to use paypal express.

q) to set up checkout express , can i do this on my localhost and do i need curl.
How do i set this up exactly?

12 Mar 2007, 6:42 AM
#2
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: paypal express how to install? and localhost issues

q) I have a premier account with paypal, and ZC asks for an api settings with paypal whcih I can't see on my paypal account info.

q) There is an option for sandbox and does this work with ZC?

where are the seup instructions for this?

25 Mar 2007, 7:31 AM
#3
culinair avatar

culinair

New Zenner

Join Date:
Mar 2007
Location:
Holland
Posts:
5
Plugin Contributions:
0

Re: paypal express how to install? and localhost issues

Go to your paypal account, look in your profile,than to API access. You have to request API access. Paypal will send you username,password and signature.
This you have to put in you set up of Papal express.

25 Mar 2007, 7:48 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: paypal express how to install? and localhost issues

Setup instructions for Express Checkout are here:

http://www.zen-cart.com/getpaypal

You'll also find a shortened version of them in your Zen Cart admin in the Modules->Payment area, after clicking on the PayPal Express Checkout option.

Your webserver will require CURL support in order to use Express Checkout.
If you need help setting up CURL on localhost, please refer to webhostingtalk.com or any other server-configuration website for assistance on your specific environment.

You can use the PayPal sandbox for testing if you like. There is an option to enable sandbox mode, which can be found inside the payment module settings in your Zen Cart admin. The sandbox is a developer tool more than a storeowner tool. As such, using the sandbox is a matter outside the scope of Zen Cart support. Please refer to https://developer.paypal.com/ for sandbox matters. You generally don't need the sandbox to test basic PayPal transactions. Simply perform some live transactions and refund them if you wish to avoid the service charges. See this wiki article on testing PayPal with Zen Cart.

28 Mar 2007, 6:41 AM
#5
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: paypal express how to install? and localhost issues

Thanks for that.
I hadn't seen the forum for a while and just saw your message.

28 Mar 2007, 12:13 PM
#6
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: paypal express how to install? and localhost issues

Ok I follow the instrcutions as above witha premier account, click on paypal when proceed to checkput is pressed , have an item to buy .50c and then I get a blank screen after clicking on confirm order ?
At The shopping cart screen there is also a button togot paypal and when i click on that nothing happens.

I did it from localhost and used setup the module as expalined with signature,username,passwrd etc.

28 Mar 2007, 12:31 PM
#7
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: paypal express how to install? and localhost issues

moved message

28 Mar 2007, 3:38 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: paypal express how to install? and localhost issues

mex:

q) to set up checkout express , can i do this on my **localhost **and do i need curl.
How do i set this up exactly?

DrByte:

...Your webserver will require CURL support in order to use Express Checkout.
If you need help setting up CURL on localhost, please refer to webhostingtalk.com or any other server-configuration website for assistance on your specific environment.

mex:

I get a blank screen after clicking on confirm order ?
At The shopping cart screen there is also a button togot paypal and when i click on that nothing happens.

I did it from **localhost **and used setup the module as expalined with signature,username,passwrd etc.

This sounds like your localhost is not configured to support CURL, which is required in order to talk to the PayPal servers. You'll need to have that working in order to test it. Why not install your Zen Cart site on a live server and test that way ? You need to be on a live server to do live processing, so this would be an ideal way to test it for you.

29 Mar 2007, 6:57 AM
#9
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: paypal express how to install? and localhost issues

Ok but how do i check if the server wil support cURL.

29 Mar 2007, 7:21 AM
#10
drbyte avatar

drbyte

Sensei

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

Re: paypal express how to install? and localhost issues

mex:

Ok but how do i check if the server wil support cURL.

  1. Did you install CURL ? If not, then since you're running on localhost you'll need to install it. You can find the files and code for CURL support online.
    I went to Google and found these references. I'm sure there are more if these aren't sufficient:
    http://energy.sdsu.edu/testcenter/testhome/phpinstall.html
    http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/
    http://curl.haxx.se/download.html
    http://curl.haxx.se/docs/install.html

  2. You can also see if there is CURL support by looking at the PHPINFO output found in Admin->Tools->Server Info
    or run /zc_install/techsupp.php via your browser.
    Look for indications that CURL is available or not.

29 Mar 2007, 8:15 AM
#11
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: paypal express how to install? and localhost issues

Hi,

I was actually talking about the live host to install ZC on, if it had curl installed. Anyway your information is very helpful.
I will check out what you said.

29 Mar 2007, 8:22 AM
#12
drbyte avatar

drbyte

Sensei

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

Re: paypal express how to install? and localhost issues

Running the techsupp.php or just the usual zc_install process (which you would run on the live hosting server anyway) will show you what PHP reports for availability of CURL support.

29 Mar 2007, 10:42 AM
#13
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: paypal express how to install? and localhost issues

I get a 'transaction is invalid.' on a paypal site when performing a paypal transaction. The value is just 10c because i am testing and will have to refund it if it works.

I just installed curl on my localhost like this and curl appears in a php_info() command.
I installed curl with this.

install curl on php5,apache,winxp
Hi,
This is how I got curl working on my Windows XP machine.

  1. Copied libeay32.dll and ssleay32.dll to c:\windows\system32
  2. Edited my PHP.ini file un-commenting extension=php_curl.dll
  3. Checked what my extension directory was (extension_dir = "./")
  4. Copied php_curl.dll from my c:\php\extensions directory to c:\php directory.
    That was it. Tested it using $cp = curl_init(); and worked fine.

q) What do i do as i seems to have done all the right things. I am going to a live site to test because the time it takes to work it out eg google , then i could have in stalled a live site.

29 Mar 2007, 10:54 AM
#14
drbyte avatar

drbyte

Sensei

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

Re: paypal express how to install? and localhost issues

mex:

I get a 'transaction is invalid.' on a paypal site when performing a paypal transaction.

What is the error code "number" ?

What are the debug logs saying? See this post for enabling and finding the logs:
http://www.zen-cart.com/forum/showthread.php?t=61199

29 Mar 2007, 11:40 AM
#15
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: paypal express how to install? and localhost issues

On the paypal site i get this . I can't find the logs yoy are talking about.

**Return to Merchant **

This transaction is invalid. Please return to the recipient's website to complete your transaction using their regular checkout flow.

29 Mar 2007, 7:20 PM
#16
drbyte avatar

drbyte

Sensei

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

Re: paypal express how to install? and localhost issues

What is your site URL ?

29 Mar 2007, 10:05 PM
#17
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: paypal express how to install? and localhost issues

hi,

This was just on my localhost. I haven't tried to install paypal on live site yet.

30 Mar 2007, 5:39 AM
#18
drbyte avatar

drbyte

Sensei

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

Re: paypal express how to install? and localhost issues

mex:

On the paypal site i get this . I can't find the logs yoy are talking about.The link posted earlier explains how to activate and find the logs.> **Return to Merchant **

This transaction is invalid. Please return to the recipient's website to complete your transaction using their regular checkout flow.

This is likely symptomatic of using "localhost" for your domain name. PayPal likely realizes that a return URL of "localhost" isn't a legitimate site, and therefore treats it as invalid information. Using your IP address might work better. Or just test on a test site installed on a live server.

30 Mar 2007, 5:47 AM
#19
mex avatar

mex

Zen Follower

Join Date:
Feb 2007
Posts:
176
Plugin Contributions:
0

Re: paypal express how to install? and localhost issues

Ok , I quickly installed ZC default on a livesite and configured paypal express.

I created a dummy account and the graphic card set to 65c with 0 cost shipping.

http://jagguy.ej.am/zen/index.php?main_page=product_info&cPath=1_4&products_id=1

I will check the logs but i get these errors. I am checking out what i did wrong but i filled out the paypal account info from my premier account when doing a live transaction of a small amount.

Warning: array_merge() [function.array-merge]: Argument #1 i

Warning: array_merge() [function.array-merge]: Argument #2

Warning: Cannot modify header information - headers already sent by (output started at.....

30 Mar 2007, 7:20 AM
#20
drbyte avatar

drbyte

Sensei

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

Re: paypal express how to install? and localhost issues

That error comes from the errorhandler which had a bug in initial release.
Apply the most recent patch posted in this thread in order to address that and several other issues:
http://www.zen-cart.com/forum/showthread.php?t=56216

The logs should still show what problems occurred.