Hello All,
first off: Congrats for programing a such great tool!
I have basically the same problem as a lot of users here "just" wanted to have a clear answer before I'm messing up with the code in my shopping cart...
Pay pal gives the following info integrate PayPal to work with an existing Shopping Cart:
If you already have a shopping cart and want to use PayPal to process your payments, you can use the Buy Now Button HTML code. You will need to populate the values of the Buy Now Button HTML code with the values in your CGI-BIN or script using the instructions below.
The required variables are:
1. <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
2. <input type="hidden" name="cmd" value="_xclick">
3. <input type="hidden" name="business" value="Your Email Address">
4. <input type="hidden" name="item_name" value="Post Item Name(s) Here">
5. <input type="hidden" name="item_number" value="Post Item Number(s)/Order Number Here (optional)">
6. <input type="hidden" name="amount" value="x.xx">
7. </form>
You may also want to include these additional variables:
1. Base Shipping = shipping
2. Additional Shipping = shipping2
3. Return URL = return
4. Cancelled Payment URL = cancel_return
5. Image URL = image_url
So my question is: what do I have to change in the code below to have the users buying items whout having to go in the paypal web site and create an account. it's the reason why I took the paypal pro option in the first place, but it seems to work as the standard version...
here is the original code that I have in the current VirtueMart (in the paypal configuration window)
<?php
$url = "https://www.paypal.com/cgi-bin/webscr";
$tax_total = $db->f("order_tax") + $db->f("order_shipping_tax");
$post_variables = Array(
"cmd" => "_xclick",
"business" => PAYPAL_EMAIL,
"receiver_email" => PAYPAL_EMAIL,
"item_name" => $VM_LANG->_PHPSHOP_ORDER_PRINT_PO_NUMBER.": ". $db->f("order_id"),
"order_id" => $db->f("order_id"),
"invoice" => $db->f("order_number"),
"amount" => round( $db->f("order_subtotal")+$tax_total, 2),
"shipping" => sprintf("%.2f", $db->f("order_shipping")),
"currency_code" => $_SESSION['vendor_currency'],
"image_url" => $vendor_image_url,
"return" => SECUREURL ."index.php?option=com_virtuemart&page=checkout.result&order_id=".$db->f("order_id"),
"notify_url" => SECUREURL ."administrator/components/com_virtuemart/notify.php",
"cancel_return" => SECUREURL ."index.php",
"undefined_quantity" => "0",
"test_ipn" => PAYPAL_DEBUG,
"pal" => "NRUBJXESJTY24",
"no_shipping" => "1",
"no_note" => "1"
);
if( $page == "checkout.thankyou" ) {
$query_string = "?";
foreach( $post_variables as $name => $value ) {
$query_string .= $name. "=" . urlencode($value) ."&";
}
mosRedirect( $url . $query_string );
} else {
echo '<form action="'.$url.'" method="post" target="_blank">';
echo '<input type="image" name="submit" src="http://images.paypal.com/images/x-click-but6.gif" border="0" alt="Make payments with PayPal, it is fast, free, and secure!">';
foreach( $post_variables as $name => $value ) {
echo '<input type="hidden" name="'.$name.'" value="'.$value.'" />';
}
echo '</form>';
}
?>
Thanks!!!
JP
You don't need to change anything in Virtuemart. This is enabled in your PayPal accounts profile. 'payment receving prefs' or something I think.
There is an option that lets you decide whether a purchaser can use an 'optimized checkout process'. That means they are pretty screen with the option of paying by CC directly OR 'log in to Paypal'
NOTE: if the purchaser has paypal cookies on their PC, Paypal automatically asks them to log in, and gives them a little link in the corner to buy without a PP account. so to thoroughly test the purchasers process you need to ged rid of the cookies
I use FF and IE. FF for the development and admin, and IE to test what the user sees. IE and FF don't get cookies confused - :)
I've been waiting for months for the abillity to integrate PayPal Pro with VirtueMart and Joomla -- hoping Hunter Sinclair will soon have his module working -- and you seem to be saying it's really simple. Is it? If you check the forum you'll see that it hasn't been simple at all... but since I haven't tried it and I'm not a programmer I really couldn't say other than what I've read.
http://zenatdesign.com/mambo_mod/index.php
The forum:
http://paypalprodemo.forumsplace.com/forum-6.html
Pam
I think the majority of people are waiting for PayPal Pro.
Couple things, could the Mod post a sticky about PayPal Pro in the forum and everybody post in there about what work is being done. Zenta last I read was stuck on something. Personally I would be willing to pay money to somebody to get this working as I want to switch to Virtuemart soon (once all my problems get fixed), and PayPal Pro is a biggie. I am currently looking at alternatives, but to the end user, PayPal Pro is easy for me with the Virtual Terminal. Which I might just have to use.
Next, I login in to PayPal's Developer site every so often. I find it STUPID that PayPal who literally has unlimited resources being part of the eBay company, doesn't take the time to create these for free. No really, having programmers sit around and do something they already know how to do and just try an integrate it into key shopping carts. It would probably literally take them a day or two to do this, and the benefits to eBay/PayPal would be tremendous. More people would use their services since the modules were free and readily available.
Sorry about the rant, but can they be any more lazy?
Corey
Quote from: koltz on February 01, 2006, 02:26:48 AM
I think the majority of people are waiting for PayPal Pro.
Couple things, could the Mod post a sticky about PayPal Pro in the forum and everybody post in there about what work is being done. Zenta last I read was stuck on something. Personally I would be willing to pay money to somebody to get this working as I want to switch to Virtuemart soon (once all my problems get fixed), and PayPal Pro is a biggie. I am currently looking at alternatives, but to the end user, PayPal Pro is easy for me with the Virtual Terminal. Which I might just have to use.
Agreed! I'm looking for PayPal Pro integration and would be willing to contribute to this.
Same here, ;)
Quote
Sorry about the rant, but can they be any more lazy?
I don't think it's laziness Corey. it's profit, and also they protect all the other shopping cards from th bankruptcy... have you seen one free solution listed ?
Could you imagine Virtue Mart in the list with the other one... ?
I did send a message to Pay pall in order to have virtue mart listed....
guess what...
no answer.
Willing to help in order to get this working.
JP
I have also sent them emails and made phone calls to no avail. There are a few people working on a solution, I'll keep checking around.
Check the other PayPal Pro post, somebody has one working and I almost have it installed. My problem I think is my site isn't live yet.
Corey
Check the board:
http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=12267.0
Hunter Sinclair has developed a PayPal Pro module for Mambo/php-shop. His business web site is:
http://www.zenatdesign.com/payment
He is on the VM boards as user "huntersinclair". If you read through his web site boards, you will see that it was established that the module does not work with Joomla/VirtueMart. He says that he is currently working on this.
Yes, I bought it, :-[ and since it was developed for mambo and phpshop (old virtue mart) the coding targets the folder administrator\components\com_phpshop which don't exists in the new Virtue Mart install administrator\components\com_virtuemart instead...
I changed the script around in order to have it work with Virtue Mart, it did work but it had to target also an SSL (secure server) I saw a post where Soeren was saying that we don't need as SSL server in order to have paypal pro working...
Back to step one.
and talking/thinking out loud
...
We got it working (j 1.0.7 + vm 1.0.2 + PayPal Pro) .... but PayPal Pro DOES require SSL... so you should break down the steps...
1. Is SSL enebaled and working on your site (https://www.yoursite.com)
2. Can you make a Puchase Order Sale with SSL working... You should go to https:// when you click on the Checkout link and enter the process
3. Then once both are done, enable Credit Card (PayPal Pro) and Test that way...
Let me know if you need any help...
For what it's worth, I have WPP working without SSL just fine. It doesn't seem to be required, at least not for me. :)
So, where users input the credit cards data ? in a non secure server...?!
I have SSL enabled on my site, but I think it is secure no matter what because of the certificate that you download from PayPal to allow a secure transaction. Kind of it's own SSL.
Corey
I can help! I know of a working solution that handles the Paypal Pro solution.
I can install and provide the license for $75 (110% money back guarantee).
Get in touch with me.
I can have your Joomla Virtuemart storefront processing credit cards within 60 minutes of orde and depositing into your Paypal Pro account.
Frank Beier
fbeier@dynamicwebs.com
419-721-4245
well frank I think then that this forum is a good place to share that info, secrecy is not good for open source or for commercial solutions.
Any link, script name or explanation is welcome
While one can easily marvel at the fact that your claims serve as an answer to their payment gateway desires, from my experience with Paypal Pro, there has been no solution that has been proven reliable. They have all fallen on their faces.
Perhaps this ought to be an integrated solution with the core of Virtuemart. This way there are no changes that can lead astray from functionality in the future.
probably I'm and ignorant in this matter (virtuemart coding, papal pro integration) but,
can somebody tell me why is that hard to integrate paypal pro into virtuemart?,
(I mean the main technical reasons)
there are a lot of less sophisticated carts offering that feature....
I think the main thing is lack of experience with PayPal's APIs, and the fact that they've changed them a few times in the past.
Hi,
I'm in Australia, and have downloaded the zenatdesign module for paypal wpp.
It does not work.
I tried emailing the developer but got no reply.
Not sure if the module works for the US paypal gateway only.
The Australian paypal gateway is using verisign, lik ethe UK.
The module Frank seems to refer to is a php module which does not seem to hook into virtuemart all at.
Ed
other than buying this from you there is no way to use pay pal pro?