PayPal Payment Standard setup in osc 2.3.1
#1
Posted 05 January 2012, 02:52
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
Posted 05 January 2012, 04:01
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
:|: 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
Posted 05 January 2012, 09:13
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
Posted 05 January 2012, 12:50
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
Posted 05 January 2012, 20:42
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
Posted 26 February 2012, 10:33
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
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
Posted 26 February 2012, 12:10
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.
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
Posted 26 February 2012, 12:55
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
Posted 26 February 2012, 15:28
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
Posted 26 February 2012, 17:12
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
Posted 28 February 2012, 18:51
Thanks,
Timmy C
#12
Posted 28 February 2012, 19:31
------ 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 GBPGood 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.
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
Posted 01 March 2012, 16:46
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
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
Posted 06 April 2012, 06:46
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
Posted 06 April 2012, 08:35
ShopAdminNL, on 06 April 2012, 06:46, said:
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.
Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.
#16
Posted 06 April 2012, 08:53
#17
Posted 26 April 2012, 12:31
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....














