Jump to content


Corporate Sponsors


Latest News: (loading..)

PayPal Payment Standard setup in osc 2.3.1


16 replies to this topic

#1 nobodyfamous

  • Community Member
  • 78 posts
  • Real Name:Chad Meyers

Posted 05 January 2012, 02:52

I am looking for a step by step guide for setting up PayPal Payment Standard in osc 2.3.1

I have done lots of mods and am comfortable with PHP and osc. This however is the first time I am setting up actual payment processing.

Looking at the documentation.pdf it looks like all the "key/certificate" info is optional. (turn Encrypted Web Payments on or off)

Is leaving that off a good idea? How do I go about obtaining these keys etc. (this will be on a GoDaddy Server for a client)

#2 DunWeb

  • Community Sponsor
  • 10,466 posts
  • Real Name:Chris Dunn
  • Gender:Male
  • Location:Tecumseh, Ontario, Canada N8N 1X8

Posted 05 January 2012, 04:01

Chad,

You are correct when you say the Cert info is optional, however it is highly recommended to prevent ghost orders. This happens when the client is taken to the PayPal site to complete the transaction and either cancels the order or closes the browser. What happens is that you have an order saying PAID when you check on your admin side but in fact, you have NOT received payment.

I have never used the encryption option included in the contribution, I have always recommended and SSL to my clients and use the same set up on my personal sites.



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:

:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:

#3 BryceJr

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

Posted 05 January 2012, 09:13

"Encrypted Web Payments" should be turned off. It has nothing to do with your site's security or SSL.
It should be "on", if your site uses paypal generated buttons in conjunction with "PayPal Payment Standard".
It is use to prevent tampering of paypal generated buttons.

PayPal Payment Standard Setup

You don't need certs and keys. If you insist on having them, click here.

#4 nobodyfamous

  • Community Member
  • 78 posts
  • Real Name:Chad Meyers

Posted 05 January 2012, 12:50

Hey thanks a ton for the link to the setup. Don't know why it wouldn't come up in a search!

Can't believe I over looked SSL. The shop is set up to use SSL, so everything payment/account related is encrypted. Darn that tunnel vision :)

#5 nobodyfamous

  • Community Member
  • 78 posts
  • Real Name:Chad Meyers

Posted 05 January 2012, 20:42

just a follow up to this setup;

the ipn page is <yoursite>/catalog/ext/modules/payment/paypal/standard_ipn.php
and your auto return page is <yoursite>/catalog/checkout_process.php

And, once you setup your Sandbox account, you need to make both a buyer and seller.

The seller account email is what you put in the payment module field for The PayPal seller e-mail address

Once you go live, switch the email back to your actual paypal account.

#6 kenkja

  • Community Member
  • 145 posts
  • Real Name:Ken Johnson

Posted 26 February 2012, 10:33

Hello All

I'm having a small problem with setting up paypal website standard on v2.3.1.

I think I have done all the correct stuff in the admin and at the Paypal end, but the shopping cart does not appear to send to paypal the line by line detail of what goods have been bought, just the goods total, shipping cost and total cost.

So when I receive a confirmation of sale e-mail from Paypal, it does not show what goods the customer has bought, see below

Extract from Paypals e-mail

"Payment details
----------------------------------------------------------------

Description: <my shop name>
Unit price: 0.78 GBP
Quantity: 1
Amount: 0.78 GBP

Postage: 3.95 GBP

Total: 4.73 GBP

Authorisation expiry date: 26 Mar 2012 10:58:08 BST"

Similarly when I go into my paypal account I'm unable to see the details of what has been bought.

Is this the expected result or have I done something wrong somewhere.

My site does have its own SSL.

Regards

ken
Os-commerce v2.3.1
Security Pro
Site Monitor
IP Trap
htaccess Protection
Bad Behaviour Block
Year Make Model
Document Manager
X Sell
Star Product
Modular Front Page
Modular Header Tags

#7 14steve14

  • Community Member
  • 2,176 posts
  • Real Name:Steve
  • Gender:Male

Posted 26 February 2012, 12:10

Kenkja

Oscommerce doesnt do this as standard. There is an add on for 2.2 that will work with paypal standard in 2.3.1 that will send the details to paypal.. Its in the add on sectiion somewhere.
REMEMBER BACKUP, BACKUP AND BACKUP
I am not a coder. OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.

#8 kenkja

  • Community Member
  • 145 posts
  • Real Name:Ken Johnson

Posted 26 February 2012, 12:55

Cheers Steve
Os-commerce v2.3.1
Security Pro
Site Monitor
IP Trap
htaccess Protection
Bad Behaviour Block
Year Make Model
Document Manager
X Sell
Star Product
Modular Front Page
Modular Header Tags

#9 kenkja

  • Community Member
  • 145 posts
  • Real Name:Ken Johnson

Posted 26 February 2012, 15:28

Hi Steve

Is it

http://addons.oscommerce.com/info/5655 ??

regards ken
Os-commerce v2.3.1
Security Pro
Site Monitor
IP Trap
htaccess Protection
Bad Behaviour Block
Year Make Model
Document Manager
X Sell
Star Product
Modular Front Page
Modular Header Tags

#10 14steve14

  • Community Member
  • 2,176 posts
  • Real Name:Steve
  • Gender:Male

Posted 26 February 2012, 17:12

Nope.

Try this one http://addons.oscommerce.com/info/6783

Just follow the manual instructions.
REMEMBER BACKUP, BACKUP AND BACKUP
I am not a coder. OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.

#11 surrfman

  • Community Member
  • 266 posts
  • Real Name:Timmy C
  • Gender:Male
  • Location:Great State of Michigan

Posted 28 February 2012, 18:51

just installed the paypal standard module, it doesn't show in the admin payment modules listing, check to make sure I placed all new files correctly; used add-on from above forum listing. I have paypal express installed, but not what i want. tried logging out of admin, refresh button about everything thinkable, no luck. Does express need to be deleted before standard appears in admin?

Thanks,

Timmy C

#12 kenkja

  • Community Member
  • 145 posts
  • Real Name:Ken Johnson

Posted 28 February 2012, 19:31

Thanks to Steve, I have installed the add-on onto my v2.3.1 install and it certainly goes someway to achieving the result desired, now the paypal confirmation e-mail shows for example
 ------ Payment details -------------- Description: M01613001 CILINDER NUT x 1 | T0305015 5X15 DACROMET ALLEN BOLT x 1 |
Unit price: 1.14 GBP
Quantity: 1
Amount: 1.14 GBP
Postage: 3.95 GBP
Total: 5.09 GBP 
Good start, but I'd like to take this a few steps further if possible, such that the e-mail would show

 --- Payment details ------

Description:
"Product_model" M01613001 CILINDER NUT x 1 "Product_Price" "Qty X Product_Price"
"Product_model" T0305015 5X15 DACROMET ALLEN BOLT x 1 "Qty X Product_Price"
"Order Value before Shipping"
Postage: 3.95 GBP
Total: 5.09 GBP

Now I can here you all asking why not go to the admin, all these details are there and you'd be absolutely correct. However, I have Sara's admin IP restriction, (see

 http://forums.oscommerce.com/topic/313323-how-to-secure-your-oscommerce-22-site/page__st__560 

) in place and my partner who works from a different location is not all that computer literate, does not have fixed IP and gets totally lost when I tell him how to reset his IP address, hence i'm trying to make it a simple as possible for him so that he can either check the paypal account or the paypal email account to see full details of any orders. As I understand the add-on (and my understanding of php is not that great), part 2 (2)

 Find: (Put the entire sentence because there are two equal sentences, the last) ----- <?php
  } else {
?><TR><TD class=main colspan="3"><?php echo '<b>' . HEADING_PRODUCTS . '</b> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></TD></TR><?php
  }
  for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { Add after: ---------- $_SESSION['FixOrder'] = $_SESSION['FixOrder'] . $order->products[$i]['name'] . " x " . $order->products[$i]['qty'] . " ";

Creates the detail for the new information for the description and the separator " | " is created by the third alteration. This is where lack of knowledge of php comes in, i think I need to alter the last line of part 2 (2)

 $_SESSION['FixOrder'] = $_SESSION['FixOrder'] . $order->products[$i]['model'] . " " . $order->products[$i]['name'] . " x " . $order->products[$i]['qty'] . $order->products[$i]['price'] . "a formula to calculate qty x price" . " "; 

and to replace the separator in part 3 with a line return <BR>

but as I don't really understand what, for example "$order->products[$i]['name']" in part 2(2) of the add in, means or is calling on, I'm unsure if the "model" or "price" statements are actually what I need.

Any clues would be gratefully appreciated.

regards Ken

Nb Sorry if this whole most end up a mess, it seemed okay at first but when I tried to edit it, there where no carriage returns, I've tried to put them back, but I'm also not very good at forums

Edited by kenkja, 28 February 2012, 19:42.

Os-commerce v2.3.1
Security Pro
Site Monitor
IP Trap
htaccess Protection
Bad Behaviour Block
Year Make Model
Document Manager
X Sell
Star Product
Modular Front Page
Modular Header Tags

#13 kenkja

  • Community Member
  • 145 posts
  • Real Name:Ken Johnson

Posted 01 March 2012, 16:46

Hello All,

In the absence of any posts, I thought I'd give it go and try out my idea of adapting http://addons.oscommerce.com/info/6783 , as above, I changed the additional line in part 2(2) which adapts checkout_confirmation.php from

$_SESSION['FixOrder'] =  $_SESSION['FixOrder'] . $order->products[$i]['name'] . " x " . $order->products[$i]['qty'] . " ";

to

$_SESSION['FixOrder'] =  $_SESSION['FixOrder'] . $order->products[$i]['model'] . $order->products[$i]['name'] . " x " . $order->products[$i]['qty'] . " ";

Unfortunately all this did was alter the e-mail from paypal to include the product name twice, clearly I'm barking up the wrong tree with the last post, so don't try it

regards

ken
Os-commerce v2.3.1
Security Pro
Site Monitor
IP Trap
htaccess Protection
Bad Behaviour Block
Year Make Model
Document Manager
X Sell
Star Product
Modular Front Page
Modular Header Tags

#14 ShopAdminNL

  • Community Member
  • 15 posts
  • Real Name:LeoS

Posted 06 April 2012, 06:46

Hi, I also installed the PayPal Standard Website Payments module in my osc 2.3.1 shop.
I got it all figured out so far, payments through sandbox are going okay, but I still have one issue:

After completing payment the PayPal website doesn't return to my shop url automatically. The buyer has 2 options; return to the shop (needed for confirmation e-mails and close the order) or he can choose to go to his PayPal account. This last option will propably cause the order never to be completed (checkout_process.php / checkout_success.php will never be reached). And yes, I did setup a callback url (checkout_process.php) in my Paypal preferences... how to make sure the buyer will be redirected to the shop after payment?? (these tests are done in sandbox)

#15 toyicebear

  • Community Sponsor
  • 5,694 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 06 April 2012, 08:35

View PostShopAdminNL, on 06 April 2012, 06:46, said:

Hi, I also installed the PayPal Standard Website Payments module in my osc 2.3.1 shop.
I got it all figured out so far, payments through sandbox are going okay, but I still have one issue:

After completing payment the PayPal website doesn't return to my shop url automatically. The buyer has 2 options; return to the shop (needed for confirmation e-mails and close the order) or he can choose to go to his PayPal account. This last option will propably cause the order never to be completed (checkout_process.php / checkout_success.php will never be reached). And yes, I did setup a callback url (checkout_process.php) in my Paypal preferences... how to make sure the buyer will be redirected to the shop after payment?? (these tests are done in sandbox)

If you use the "default" PayPal Standard Website Payments in 2.3.1 , the customer does not need to return back to your shop for the order to be updated. This is an "IPN" style module so the order status will be updated in the "background" anyway.

Edited by toyicebear, 06 April 2012, 08:35.

Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#16 ShopAdminNL

  • Community Member
  • 15 posts
  • Real Name:LeoS

Posted 06 April 2012, 08:53

Okay, but what I see in test is that the e-mail regarding the order details is only sent when the return link is clicked after paypal payment. Without that the only mails going around are the paypal e-mails. I would also like to send the order e-mail automatically (including a copy to myself).

#17 ShopAdminNL

  • Community Member
  • 15 posts
  • Real Name:LeoS

Posted 26 April 2012, 12:31

Live testing seems to work fine. After completing the Paypal payment the customer returns to the shop automatically.

One more question, hopefully someone's got the answer:

When the shop redirects the customer to the Paypal Standard (https) page it shows a little overview of the ordered items and desired shipping method. But unfortunately I see my Paypal name there instead of the shop's name. Also the quit and return link is shows as "stop and return to my.name@email.com instead of the shop's name. Is there any way to change this? I've been searching through the Paypal account settings but couldn't find it....