Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

paypal integration


17 replies to this topic

#1 keithclark

  • Community Member
  • 106 posts
  • Real Name:Keith Clark

Posted 10 June 2008, 22:59

I'm trying to get Website Payments Standard to work but when I ask them for help they refer me to the osCommerce website. When I start the Admin, it refers me to the paypal website.......I'm not sure what this little tight circle is all about, but it certainly doesn't help me out.

Any ways to break this circle?

Keith

#2 keithclark

  • Community Member
  • 106 posts
  • Real Name:Keith Clark

Posted 10 June 2008, 23:26

View Postkeithclark, on Jun 10 2008, 06:59 PM, said:

I'm trying to get Website Payments Standard to work but when I ask them for help they refer me to the osCommerce website. When I start the Admin, it refers me to the paypal website.......I'm not sure what this little tight circle is all about, but it certainly doesn't help me out.

Any ways to break this circle?

Keith

Anyone? Maybe we could hook up on the irc channel and you could walk me through?

Keith

#3 keithclark

  • Community Member
  • 106 posts
  • Real Name:Keith Clark

Posted 11 June 2008, 00:03

View Postkeithclark, on Jun 10 2008, 07:26 PM, said:

Anyone? Maybe we could hook up on the irc channel and you could walk me through?

Keith

Ok, never mind.

Someone should write a simple, step by step instruction sheet on how to add the following to the paypal setup:

Private Key
Public Cert.
PayPals Public Cert.
Your PayPal Puble Cert.
Working Directory.

These are all a mystery to an new user and there is no help on either website to be of any use whatsoever.

Keith

#4 keithclark

  • Community Member
  • 106 posts
  • Real Name:Keith Clark

Posted 11 June 2008, 02:03

View Postkeithclark, on Jun 10 2008, 08:03 PM, said:

Ok, never mind.

Someone should write a simple, step by step instruction sheet on how to add the following to the paypal setup:

Private Key
Public Cert.
PayPals Public Cert.
Your PayPal Puble Cert.
Working Directory.

These are all a mystery to an new user and there is no help on either website to be of any use whatsoever.

Keith

I called PayPal and they say they don't support osCommerce no matter what the setup says. Very disappointing...I am going to fight it out with them as osCommerce is listed in their supported Carts list!

Keith

#5 BryceJr

  • Community Member
  • 1,448 posts
  • Real Name:Bryce

Posted 11 June 2008, 05:35

This is written for Paypal IPN but most if not all of the steps are also applicable for some Paypal modules.
Edited for this thread.

Download OpenSSL --> http://www.slproweb.com/products/Win32OpenSSL.html

I. OpenSSL

1. Download and install OpenSSL if it is not already installed. Remember where it is installed. c:\openssl is a good place.

2. Click on Start, Run. Type in "cmd" without the quotes to open the dos or command prompt.

3. Creating Your Private Key with OpenSSL
Using the openssl program and assuming it is installed in c:\openssl, enter the following command to create your private key. The command generates a 1024-bit RSA private key. The private key is stored in the file my- prvkey.pem :

c:\openssl\bin\openssl genrsa -out my-prvkey.pem 1024

4. Creating Your Public Certificate Using OpenSSL

To create your certificate, enter the following openssl command, which generates a public certificate in the file my-pubcert.pem

c:\openssl\bin\openssl req -new -key my-prvkey.pem -x509 -days 365 -out my-pubcert.pem

You will be asked several questions:

Country

State

City

Company Name

Unit (Division)

Common Name (Your Name)

Email Address
The two files will be saved in the \bin folder where you ran openssl from. Change the path if you did not install to c:\openssl.

II. Paypal

1. Login to your Paypal account and click on the Profile tab.

2. Click on the link on the right for Instant Payment Notification Preferences under Selling Preferences. Click on Edit. Click on the box to enable IPN. Enter the URL on your site to receive notices at. Click on Save. Click on Back to Profile Summary link.

2.5 Setting up WPS:
  • Click on "Website Payment Preferences" under the "Selling Preferences" section.
  • Enable "Auto Return".
  • Set the "Return URL" to http://www.yourdomain.com/cart/checkout/complete
  • Enable "Paypal Account Optional" (optional). This will make it so customers are not forced to create a PayPal account during checkout.
  • Save your settings.
3. Click on the link on the right for Encrypted Payment Settings under Selling Preferences.

4. Click on Download to download the Paypal Public Cert. Change the name after download to paypal_cert.pem.

5. Click on Add to upload your public cert � my-pubcert.pem Browse to it (c:\openssl\bin possibly) and then click Add.

6. When you get back to the Website Payment Certificates screen, you will see a Cert ID which you willl need to type in later in OsCommerce.

7. Logout.

III. Oscommerce If the Paypal module is already installed in your osc payment module, skip steps 1-2.

1. Unzip the Paypal IPN or Paypal Website Payments Standard files.

2. Upload the files under the Oscommerce folder in the right places with FTP.

3. Upload your public cert, private key, and the Paypal public cert to the /admin folder. That folder should be password protected by Web Protect in Cpanel.

4. Enable the Paypal IPN (Credit card Debit card) or Paypal Website Payments Standard in the Oscommerce Admin panel.

5. Edit the IPN or Paypal Website Payments Standard by clicking on corresponding Paypal module then click on Edit.

6. Most of the fields are self-explanatory. The main ones are:

a. Email address � set to your seller email address on Paypal.

b. Gateway server � if you sign up as a developer at http://developer.paypal.com and then create two users in the Sandbox, you can test the IPN in Testing mode with dummy users and transactions before using it. This is for advanced users only. You may go straight to Live Site instead if this is too complicated for you. If you do choose to use the Sandbox, be aware that it uses a different Paypal public cert than the live site. The wrong paypal public cert will generate a 5302 error when testing.

c. Page Style � this can be selected at Paypal under your Profile.

d. Debug E-mail Address � an email address to send errors to if using testing mode first. Be sure to delete the address here when done testing or it will keep sending emails.

e. Enable encrypted web payments � set to false.

f. Your private key � the full home path to your private key ie like /home/username/public_html/store/admin/my-prvkey.pem (change username to your cpanel username)

g. Your public cert � the full home path to your public cert ie like /home/username/public_html/store/admin/my-pubcert.pem

h. Paypal's public certificate � the full home path to Paypal's public cert you uploaded i.e. like /home/username/public_html/store/admin/paypal_cert.pem

i. Your Paypal Public Certificate ID � the ID for the public cert you uploaded to Paypal.

j. Working directory � create a temp folder under your oscommerce folder and enter the full home path here ie like /home/username/public_html/store/temp

k. OpenSSL Location - /usr/bin/openssl

l. Click on Update.

That's it! Test it Live or through the Paypal Sandbox. Don't forget to remove the Debug E-Mail Address when done testing.

Source: https://support.lunarpages.com/knowledge_bases/article/187
Paypal Website Payments Standard Guide https://www.paypalobjects.com/WEBSCR-520-20080528-1/en_US/pdf/PP_WebsitePaymentsStandard_IntegrationGuide.pdf

Edited by BryceJr, 11 June 2008, 05:44.


#6 keithclark

  • Community Member
  • 106 posts
  • Real Name:Keith Clark

Posted 11 June 2008, 13:48

View PostBryceJr, on Jun 11 2008, 01:35 AM, said:

This is written for Paypal IPN but most if not all of the steps are also applicable for some Paypal modules.
Edited for this thread.

Download OpenSSL --> http://www.slproweb.com/products/Win32OpenSSL.html

I. OpenSSL

1. Download and install OpenSSL if it is not already installed. Remember where it is installed. c:\openssl is a good place.

2. Click on Start, Run. Type in "cmd" without the quotes to open the dos or command prompt.

3. Creating Your Private Key with OpenSSL
Using the openssl program and assuming it is installed in c:\openssl, enter the following command to create your private key. The command generates a 1024-bit RSA private key. The private key is stored in the file my- prvkey.pem :

c:\openssl\bin\openssl genrsa -out my-prvkey.pem 1024

4. Creating Your Public Certificate Using OpenSSL

To create your certificate, enter the following openssl command, which generates a public certificate in the file my-pubcert.pem

c:\openssl\bin\openssl req -new -key my-prvkey.pem -x509 -days 365 -out my-pubcert.pem

You will be asked several questions:

Country

State

City

Company Name

Unit (Division)

Common Name (Your Name)

Email Address
The two files will be saved in the \bin folder where you ran openssl from. Change the path if you did not install to c:\openssl.

II. Paypal

1. Login to your Paypal account and click on the Profile tab.

2. Click on the link on the right for Instant Payment Notification Preferences under Selling Preferences. Click on Edit. Click on the box to enable IPN. Enter the URL on your site to receive notices at. Click on Save. Click on Back to Profile Summary link.

2.5 Setting up WPS:
  • Click on "Website Payment Preferences" under the "Selling Preferences" section.
  • Enable "Auto Return".
  • Set the "Return URL" to http://www.yourdomain.com/cart/checkout/complete
  • Enable "Paypal Account Optional" (optional). This will make it so customers are not forced to create a PayPal account during checkout.
  • Save your settings.
3. Click on the link on the right for Encrypted Payment Settings under Selling Preferences.

4. Click on Download to download the Paypal Public Cert. Change the name after download to paypal_cert.pem.

5. Click on Add to upload your public cert � my-pubcert.pem Browse to it (c:\openssl\bin possibly) and then click Add.

6. When you get back to the Website Payment Certificates screen, you will see a Cert ID which you willl need to type in later in OsCommerce.

7. Logout.

III. Oscommerce If the Paypal module is already installed in your osc payment module, skip steps 1-2.

1. Unzip the Paypal IPN or Paypal Website Payments Standard files.

2. Upload the files under the Oscommerce folder in the right places with FTP.

3. Upload your public cert, private key, and the Paypal public cert to the /admin folder. That folder should be password protected by Web Protect in Cpanel.

4. Enable the Paypal IPN (Credit card Debit card) or Paypal Website Payments Standard in the Oscommerce Admin panel.

5. Edit the IPN or Paypal Website Payments Standard by clicking on corresponding Paypal module then click on Edit.

6. Most of the fields are self-explanatory. The main ones are:

a. Email address � set to your seller email address on Paypal.

b. Gateway server � if you sign up as a developer at http://developer.paypal.com and then create two users in the Sandbox, you can test the IPN in Testing mode with dummy users and transactions before using it. This is for advanced users only. You may go straight to Live Site instead if this is too complicated for you. If you do choose to use the Sandbox, be aware that it uses a different Paypal public cert than the live site. The wrong paypal public cert will generate a 5302 error when testing.

c. Page Style � this can be selected at Paypal under your Profile.

d. Debug E-mail Address � an email address to send errors to if using testing mode first. Be sure to delete the address here when done testing or it will keep sending emails.

e. Enable encrypted web payments � set to false.

f. Your private key � the full home path to your private key ie like /home/username/public_html/store/admin/my-prvkey.pem (change username to your cpanel username)

g. Your public cert � the full home path to your public cert ie like /home/username/public_html/store/admin/my-pubcert.pem

h. Paypal's public certificate � the full home path to Paypal's public cert you uploaded i.e. like /home/username/public_html/store/admin/paypal_cert.pem

i. Your Paypal Public Certificate ID � the ID for the public cert you uploaded to Paypal.

j. Working directory � create a temp folder under your oscommerce folder and enter the full home path here ie like /home/username/public_html/store/temp

k. OpenSSL Location - /usr/bin/openssl

l. Click on Update.

That's it! Test it Live or through the Paypal Sandbox. Don't forget to remove the Debug E-Mail Address when done testing.

Source: https://support.lunarpages.com/knowledge_bases/article/187
Paypal Website Payments Standard Guide https://www.paypalobjects.com/WEBSCR-520-20080528-1/en_US/pdf/PP_WebsitePaymentsStandard_IntegrationGuide.pdf

Nice work! I thank you very much for your detailed help here!!!!!

Keith

#7 keithclark

  • Community Member
  • 106 posts
  • Real Name:Keith Clark

Posted 11 June 2008, 14:19

View Postkeithclark, on Jun 11 2008, 09:48 AM, said:

Nice work! I thank you very much for your detailed help here!!!!!

Keith

Is the following correct?

http://www.yourdomain.com/cart/checkout/complete

Where exactly is /cart/checkout/complete?

Keith

#8 BryceJr

  • Community Member
  • 1,448 posts
  • Real Name:Bryce

Posted 08 August 2008, 12:31

The links I provided above was valid and working at the time I posted them.

If the link(s) are not working or maybe invalid, please don't PM me asking for a working link.

PayPal Website Payments Standard Integration Guide - PDF

Remember: You can always use GOOGLE

#9 keithclark

  • Community Member
  • 106 posts
  • Real Name:Keith Clark

Posted 08 August 2008, 13:40

View PostBryceJr, on Aug 8 2008, 08:31 AM, said:

The links I provided above was valid and working at the time I posted them.

If the link(s) are not working or maybe invalid, please don't PM me asking for a working link.

PayPal Website Payments Standard Integration Guide - PDF

Remember: You can always use GOOGLE

I did use Google quite some time ago and did solve my problem, thanks. I would not bother you with a PM.

Keith

#10 BryceJr

  • Community Member
  • 1,448 posts
  • Real Name:Bryce

Posted 08 August 2008, 22:21

View Postkeithclark, on Aug 8 2008, 01:40 PM, said:

I did use Google quite some time ago and did solve my problem, thanks. I would not bother you with a PM.

Keith
Please accept my apologies Keith. My recent post on this thread was not intended for you.

Some people found this thread and the link I posted that was working before are not valid anymore.
I received PM asking for working links/url.

It seems that doing a search on google is too much work for some.

I'm sorry for the confusion.

#11 truncheon

  • Community Member
  • 3 posts
  • Real Name:Thomas

Posted 16 September 2008, 20:23

View PostBryceJr, on Jun 11 2008, 01:35 AM, said:

2. Click on the link on the right for Instant Payment Notification Preferences under Selling Preferences. Click on Edit. Click on the box to enable IPN. Enter the URL on your site to receive notices at. Click on Save. Click on Back to Profile Summary link.

hi,

can you clarify this? should the URL you receive notices at be a certain module/php file? i'm not sure what i should enter here at the paypal site!

thanx for any help!

t

#12 BryceJr

  • Community Member
  • 1,448 posts
  • Real Name:Bryce

Posted 16 September 2008, 23:40

View Posttruncheon, on Sep 16 2008, 09:23 PM, said:

hi,

can you clarify this? should the URL you receive notices at be a certain module/php file? i'm not sure what i should enter here at the paypal site!

thanx for any help!

t
I believe that's your e-commerce website. It's also a good thing to sign up for sandbox in paypal, so you can test your settings.

#13 truncheon

  • Community Member
  • 3 posts
  • Real Name:Thomas

Posted 17 September 2008, 16:38

View PostBryceJr, on Sep 16 2008, 07:40 PM, said:

I believe that's your e-commerce website. It's also a good thing to sign up for sandbox in paypal, so you can test your settings.

thanx Bryce! I think i have it set up properly in sandbox now!

#14 arsenal51

  • Community Member
  • 16 posts
  • Real Name:Terry Kulp

Posted 17 September 2008, 19:14

May I ask you Keith, with the full text of this "fix" for PayPal, is it something that can be used to initiate the PayPal link in osc? I have asked my server manager about having one or more of the modules set for payment. He suggested using ONLY PayPal. I have a business account with PayPal and wanted to know if I should use this programmed fix to install PayPal at my site?

Question: If osCommerce has these sources in the program, why does it take this much additional coding and manipulation to make it work? I have tried to run a check out at my site, but it is always stopping after I click on the "Checkout" button. I get a server error in IE 7.0, [can't test in Firefox] that

says: /checkout_shipping.phposCsid=e4e1639e9a9f597a357733b776724cea. This means nothing to me but I will gladly eliminate all other options other than PayPal and use that for payment. But before I do that, I wanted to know if this "fix" that you provided was a "universdal fix" for everyone trying to use PayPal or was just because of this error that was sent to you?

I aplogize for asking the rudimentary questions out of ignorance, but I am not a programmer and if I go down this path, I need to know my way home. I use Expression Web to edit code. Will this code display anything that I can or should be able to see in Expression Web? I appreciate this. I have a lot to learn but I thought osC was already ready for the working world, but there are so many people like yourself that have found new and interesting fixes to these issues...it seems like it is in constant "Beta"??

Appreciate your help greatly!
arsenal51

#15 keithclark

  • Community Member
  • 106 posts
  • Real Name:Keith Clark

Posted 19 September 2008, 13:32

View PostBryceJr, on Aug 8 2008, 06:21 PM, said:

Please accept my apologies Keith. My recent post on this thread was not intended for you.

Some people found this thread and the link I posted that was working before are not valid anymore.
I received PM asking for working links/url.

It seems that doing a search on google is too much work for some.

I'm sorry for the confusion.

No problem. I understand now. Thanks for the clarrification, I appreciate that.

Keith

#16 janie09

  • Community Member
  • 1 posts
  • Real Name:janie marcos

Posted 28 September 2009, 01:11

Hi brycejr,

Thanks for the post and the very detailed instructions. It was easy to go through it because of your post.




Regards,
Jan
prêts travaux

#17 fuzzybaby

  • Community Member
  • 4 posts
  • Real Name:sally kwek

Posted 13 November 2009, 02:08

i tried the step by step instructions to download openssl and generate the private key but all i get was this message

"unable to write random state"

#18 tallberg

  • Community Member
  • 20 posts
  • Real Name:Iain

Posted 01 April 2010, 17:15

View Postfuzzybaby, on 13 November 2009, 02:08, said:

i tried the step by step instructions to download openssl and generate the private key but all i get was this message

"unable to write random state"


Im also having this problem. Does any know of a solution?