Jump to content
Sign in to follow this  
betch23

Paypal Standard Setup

Recommended Posts

Has anyone had some success with setting up Paypal Web Standard? Any help would be very appreciated. I have spend hours on the phone with Paypal and can't seem to get someone who knows the product. Thanks in Advance!

Share this post


Link to post
Share on other sites

Before you do anything with the module you need to check that you have setup OSC correctly to the language you are going to use, the Location of your shop and the Currency you are to use or you will get all sorts of funny errors like missing tax, wrong currency, prices missing from your web site etc. So lets spend a minute looking through the Admin pages making sure the basics are right.

 

Login to your Admin page and go to Configuration > My Store

Work your way down the list of settings and make sure that you have setup all the sections

Pay particular attention to 'Switch to Default Language Currency' if you turn this on (true) and your shop is outside the US the prices will disappear from your website

At the bottom of the list set the decimal places for the tax in your location (leave at zero if you sell goods that don't attract tax) and also set 'Display Prices with Tax' if you need to charge sales tax or VAT

Next go to Locations / Taxes and set the country your shop is in, the tax zone it is in if you need to charge tax and then Tax Zones, Classes and Rates - exactly how to do this is beyond the scope of this tutorial but there is plenty of help in the forums for setting up the various national tax requirements.

Next go to Localization and setup the currencies you want to be able to accept. Remember it is most important to set your national currency as the default currency or your site will display all its prices in US Dollars and pass those prices to PayPal as US Dollars too.

Next set the Default Language for the site and add any other languages you wish to offer

Make a note of the changes you have made as you will need them for the next step - setting up PayPal

Setting up PayPal

First a word of warning. If you put PayPal into a search engine to find the home page and setup a business account you will end up on the US PayPal site - OK if you live in the USA but not so good if you live elsewhere as there are quite a few differences in the way PayPal handles payments directed to UK shops or those in the EEC. Like wise the Australian shops have specific requirements so make sure you are logging in to your National branch of PayPal. I am in the UK so I will go through the steps needed for a UK site - I'm afraid you will have to look at the PayPal help pages for your local settings.

 

Find the PayPal login page for your Country

Login to your account or sign up for a new account for your shop (sales@<yourshop>.co.uk is a good one for UK shops) don't forget to make a mailbox for this email address and to add it to My Store in the Send Extra Order Emails to section

Once you have an account and are logged in, go to Profile and in the right hand column click on Payment Receiving Preferences

In here you have the choice of accepting just your default currency, or having other currencies converted. We found that having them converted let us accept orders from EEC countries as well as the UK

Block multiple payments so that you don't get duplicate orders

Set the Credit Card Statement Name so that customers will recognise payments to you on their Credit Card Statements when they pay that way through PayPal

Save the page and go to Profile>Instant Payment Notification Preferences

Activate Instant Payment Notification

The notification URL should be http://<your web site>/catalog/checkout_process.php

Save the page then go to Profile>Website Payment Preferences

Turn on Auto Return

Set the return URL to http://<your website>/catalog/ipn.php

Leave Payment Data Transfer set to off as this module doesn't support it (You need PayPal Pro for that)

Using this module you are using PayPal to handle all your Credit Card payments so you don't need encrypted payments. If you do want to have them you need to buy a SSP certificate and that is beyond the scope of this tutorial so set Encrypted Website Payments to off

To ensure that customers are returned to your site and you are notified of the order details you need to make set PayPal account optional to off

As your customers have already supplied their phone number when they created an account with you, you don't need to ask them for it again. Turn Contact telephone number off

As this module doesn't use Express Checkout, Say no to Support Giro and Bank Transfer Payments

Save the page then go to Custom Payment Page Styles

In here you can change the colour of the PayPal page, add your logo to the payment confirmation page and generally integrate the PayPal page with your site

You are now ready to install the Website Payments Standard module to your site

Installing the Module

After extracting the add-on package, copy the files located in the catalog directory to your osCommerce installation directory on the server. The files must be copied in the correct directory structure as extracted from the add-on package.

 

The file listing is as follows:

 

catalog/ext/modules/payment/paypal_standard_ipn.php

catalog/includes/languages/english/modules/payment/paypal_standard.php

catalog/includes/languages/espanol/modules/payment/paypal_standard.php

catalog/includes/languages/german/modules/payment/paypal_standard.php

catalog/includes/modules/payment/paypal_standard.php

To install languages other than English see the readme.pdf file in the unpacked module.

 

Configure the module

Once the module is uploaded, login to your Admin page and go to Modules>Payment. In here you can configure the new module.

 

You will see that there are now three PayPal modules showing

PayPal - PayPal IPN - PayPal Website Payments Standard

Uninstall both PayPal and PayPal IPN if you have already installed and activated them

Install PayPal Website Payments Standard

Click on the Edit button in the right hand column

Set Enable PayPal Website Payments Standard to True

In email address put the address you have used to set up your PayPal account

Check on the forums if you need to set a payment zone - in the UK accepting only GBP you don't and can leave this as none

Set preparing Order Status to Preparing [PayPal Standard] to intercept bad orders or ones that don't complete

Set PayPal Acknowledged Orders Status to Processing

Set the Gateway Server to Sandbox while testing but remember to set it to live when testing is over

Set Transaction method to Sale

Set Page Style to PayPal

Set the Debug E-Mail Address to the email address you want emails from PayPal to go to about orders that are not completed or any problems with payment NB. It should not be the same email address you use for your PayPal account

Set the sort order of display to where you want the PayPal option to come in your payment options list in the shopping cart. Low numbers come first in the list but 0 comes at the end so be careful what you choose

If you aren't using encrypted payments you can ignore the rest of the list - we don't use them so I haven't found out what they are for other than they are something to do with secure websites (https://) the module works just fine without them.

Right you are now ready to start sending through test purchases. I hope this tutorial helps you to set up and configure PayPal for your osCommerce site - the above instructions worked just fine for us and we are now getting completed orders through without any errors.

Share this post


Link to post
Share on other sites

I pretty much followed those instructions (BTW a great document), and it seemed to put most of the previous issues I had away.

 

However, when I try to test it, it will pass the dollar amount & everything, but when I click on Pay Now button, it tells me its already been paid. I was looking to see some sort of notification on my (regular) email tied to the account that it had processed. And, where I think it should return me back to my site, it does, but not where I thought it should.

 

Any ideas?

Share this post


Link to post
Share on other sites

hi i am not sure how you set it up but i did mine the same way as it says and all works fine i would go over it again and check you have done it all correct

Share this post


Link to post
Share on other sites
hi i am not sure how you set it up but i did mine the same way as it says and all works fine i would go over it again and check you have done it all correct

 

I wasn't sure if the behavior of the Sandbox was correct. All seems to function correctly until I hit the Pay Now button there in Paypal's sandbox.

 

Would it help if I provided some screen shots of what's happening with mine?

 

As far as I can tell, everything noted in the Paypal module in OSCommerce is set accordingly, as well as everything in Paypal's profile.

 

I had an unbelievable number of problems just getting a sandbox account to function, and Paypal is no help in doing anything there.

Share this post


Link to post
Share on other sites
hi have you got the Gateway Server

live or sand box

 

BTW, I am in the US in North Carolina. Would be doing business only in the US.

 

Here's what is in my setup:

 

Enable PayPal Website Payments Standard

Do you want to accept PayPal Website Payments Standard payments?

Set to True

 

E-Mail Address

The PayPal seller e-mail address to accept payments for

set to myname@mydomain.com (not really, but it's a valid email address for Paypal)

Payment Zone

If a zone is selected, only enable this payment method for that zone.

set to --none-- in the dropdown box.

 

 

Set Preparing Order Status

Set the status of prepared orders made with this payment module to this value

 

set to Preparing [Paypal Standard] in the dropdown box

 

Set PayPal Acknowledged Order Status

Set the status of orders made with this payment module to this value

 

set to Processing in the dropdown box

 

Gateway Server

Use the testing (sandbox) or live gateway server for transactions?

 

radio button clicked for Sandbox

Transaction Method

The processing method to use for each transaction.

 

radio button set for Sale

Page Style

The page style to use for the transaction procedure (defined at your PayPal Profile page)

set to Paypal

 

Debug E-Mail Address

All parameters of an Invalid IPN notification will be sent to this email address if one is entered.

 

set to another valid email address

Sort order of display.

Sort order of display. Lowest is displayed first.

 

set to 1

Enable Encrypted Web Payments

Do you want to enable Encrypted Web Payments?

 

radio button set to false

Your Private Key

The location of your Private Key to use for signing the data. (*.pem)

 

 

Your Public Certificate

The location of your Public Certificate to use for signing the data. (*.pem)

 

 

PayPals Public Certificate

The location of the PayPal Public Certificate for encrypting the data.

 

 

Your PayPal Public Certificate ID

The Certificate ID to use from your PayPal Encrypted Payment Settings Profile.

 

 

Working Directory

The working directory to use for temporary files. (trailing slash needed)

 

 

OpenSSL Location

The location of the openssl binary file.

 

all except the last one are blank.

 

The OpenSSL Location (which I am not using and it was populated when I edited the module) has in it:

 

/usr/bin/openssl

 

 

In OS Commerce, that's what I have set in it.

 

Not sure why Paypal's sandbox would throw me back to where it does & why it doesn't "complete".

Edited by schatham

Share this post


Link to post
Share on other sites
set Gateway Server to live

 

won't that make it a live transaction? (and take money out of an account, etc, etc, etc)?

 

I would think that the Sandbox would be just that - where the entire transaction would go through completely & look exactly like a "real" one, without having the hitch of the "already paid" thing to show up.

Share this post


Link to post
Share on other sites
try it as sandbox would not work on mine it will only take you to paypal web site just make an order and see if it works

 

There's been a couple of things that I found out in phone calls to Paypal.

 

Since OSCommerce is a 3rd party piece of software, the Sandbox will not work (i.e. will not show a payment being processed) in the sandbox. However, what I did find out was that if it goes in, pays and returns to your site, it is supposed to work. In fact, it worked live this evening in a test transaction.

 

The other thing with working out the kinks in the Sandbox was the login names. I had been using the Login email address of my regular, merchant account as the "main" account. It should have been the email address for the Sandbox account.

 

Once I got that straight, the checkout process went fine - all except for showing me the $$$ amount sent in the Sandbox transaction.

 

Thanks so much for the help!

 

SC

Share this post


Link to post
Share on other sites
hi sorry i forgot about the sandbox not working i had to set it to live to get it all working

 

You can always set a product to 1 pence/1 cent and buy it using the Paypal module.

 

Cheap way to see if everything works.

Share this post


Link to post
Share on other sites

Hi All,

I also followed all the steps and set it to live but for some reason Paypal does not show as a payment option.

After the shipping page it goes to selecting a payment "This is currently the only payment method available to use on this order" however there is no payment method. A few times I just clicked continue and the order confirmation came-up which took me to the paypal page with no info about the order I just placed. But now I can't even pass the payment page it says "Please select a payment method for your order."

 

I have no Idea what is going wrong. I read multiple treads but can't find anything.

Any help would be greatly appreciated

Thanks

Share this post


Link to post
Share on other sites
have you set it to true so it will show

 

Yes I have it set to true. It doesn't come up as a payment option. If I click continue it takes me to the paypal website where I have to login, but no information on the order I placed is shown.

Share this post


Link to post
Share on other sites

quoting 'airbrushmaster' from Jan 29 2009, post 1363275

Set the return URL to http://<your website>/catalog/ipn.php

 

Hello - Great instructions for Paypal Website Payment Standards, except the above "return URL" has me perplexed. My store is in root, so I assume that would be http://mywebsite/ipn.php.

 

That file does not exist in the root directory, nor can I find it elsewhere. Is it something that I have to create, and if so, can you help with the php code (I'm a newbie and can usually follow instructions on contributions with cutting and pasting, and have EXTREMELY limited html experience)?

 

Also, can anyone answer this? The paypal account being used for this oscommerce site also accepts payments for other sites, but on no other sites do we use the "return to site" or a return to the site's specific URL. This shouldn't mess up allowing payments to be sent from 'buy it now' and other such payment options from other sites, should it?

 

Thanks for any help, especially about the ipn.php.

Share this post


Link to post
Share on other sites

Hi all,

 

At last some people who know somethin about paypal

 

I'm in the midde of setting upthe paypal standard module. I followed the instructions above but it's still not working properly so I must be doing something wrong. Can anyone answer the following questions

 

1: On our website, after installing the standard paypal modue when we go to checkout it is asking the buyer for the credit card number on our site. Our site is not encryped so obviously we need it to go to the paypal site. What are we doing wrong. why is it not going ot the paypal site?

 

2: Anyone know how to encrpt our site and use https - What are the beneits if paypal is authorizing the transactions

 

Thanks in advance

 

John

Share this post


Link to post
Share on other sites
you dont need to do that once you go through checkout if it takes you to paypal you know it works

 

 

Except you don't know if the return is set correctly!!!!!!

Share this post


Link to post
Share on other sites
Hi all,

 

I'm in the midde of setting upthe paypal standard module. I followed the instructions above but it's still not working properly so I must be doing something wrong. Can anyone answer the following questions

 

1: On our website, after installing the standard paypal modue when we go to checkout it is asking the buyer for the credit card number on our site. Our site is not encryped so obviously we need it to go to the paypal site. What are we doing wrong. why is it not going ot the paypal site?

 

2: Anyone know how to encrpt our site and use https - What are the beneits if paypal is authorizing the transactions

 

Sounds like you have either installed the wrong Paypal or your settings are incorrect. Which Paypal version are you using? It sounds like you just need Paypal Standard. Otherwise what seetings have you got in the paypal module.

 

If you want to take payments on your site rather than letting your customers go through Paypal you will need the encryption but it can be expensive and fiddly to set up. I make all my customers go through Paypal and make their payments their. I don't have any problems as a result so in my opinion there is no benefit for me to get an ssl key. Others believe it is more professional looking to take payments directly on the site.

Share this post


Link to post
Share on other sites

I've set up paypal standard too, it looks ok but I will have to do a full test, I just wish that paypal would make it easier for my customers to select credit card rather than paypal sign in, it puts people off. Will now be sticking up a google checkout too. :rolleyes:

Share this post


Link to post
Share on other sites

Are you guys talking about the paypal modules that are shipped with oscommerce 2.2a? or are you talking about the paypal module for oscommerce which can be downloaded on the paypal page?

Share this post


Link to post
Share on other sites
Installing the Module

After extracting the add-on package, copy the files located in the catalog directory to your osCommerce installation directory on the server. The files must be copied in the correct directory structure as extracted from the add-on package.

 

The file listing is as follows:

 

catalog/ext/modules/payment/paypal_standard_ipn.php

catalog/includes/languages/english/modules/payment/paypal_standard.php

catalog/includes/languages/espanol/modules/payment/paypal_standard.php

catalog/includes/languages/german/modules/payment/paypal_standard.php

catalog/includes/modules/payment/paypal_standard.php

To install languages other than English see the readme.pdf file in the unpacked module.

 

Configure the module

 

Sorry - I'm a newbie - I'm a bit confused about where I copy these files to? I haven't copied anything & couldn't get sandbox to work, but reading down this thread - I switched it to live & did a 1p transaction which seemed to go through fine - but I'm still concerned that I dont' have these files mentioned above in the right place, any help would be gratefully received.

thanks

Share this post


Link to post
Share on other sites

Hi all i also try to setup my paypal standard setup but have an error when i did a test purchase...

 

Warning: fopen(/752685-2-data.txt) [function.fopen]: failed to open stream: Permission denied in /home/anakwata/public_html/kinks/includes/modules/payment/paypal_standard.php on line 331

Warning: fwrite(): supplied argument is not a valid stream resource in /home/anakwata/public_html/kinks/includes/modules/payment/paypal_standard.php on line 332

Warning: fclose(): supplied argument is not a valid stream resource in /home/anakwata/public_html/kinks/includes/modules/payment/paypal_standard.php on line 333

Warning: unlink(/752685-2-data.txt) [function.unlink]: No such file or directory in /home/anakwata/public_html/kinks/includes/modules/payment/paypal_standard.php on line 365

Warning: unlink(/752685-2-signed.txt) [function.unlink]: No such file or directory in /home/anakwata/public_html/kinks/includes/modules/payment/paypal_standard.php on line 368

Warning: fopen(/752685-2-encrypted.txt) [function.fopen]: failed to open stream: No such file or directory in /home/anakwata/public_html/kinks/includes/modules/payment/paypal_standard.php on line 370

Warning: filesize() [function.filesize]: Stat failed for /752685-2-encrypted.txt (errno=2 - No such file or directory) in /home/anakwata/public_html/kinks/includes/modules/payment/paypal_standard.php on line 371

Warning: fread(): supplied argument is not a valid stream resource in /home/anakwata/public_html/kinks/includes/modules/payment/paypal_standard.php on line 371

Warning: fclose(): supplied argument is not a valid stream resource in /home/anakwata/public_html/kinks/includes/modules/payment/paypal_standard.php on line 372

Warning: unlink(/752685-2-encrypted.txt) [function.unlink]: No such file or directory in /home/anakwata/public_html/kinks/includes/modules/payment/paypal_standard.php on line 374

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×