Re: Re: Create a node that contains the grid view you have creat

Posts: 4
Joined: 08/08/2007

PayPal Integration Completed (for now)
Submitted by Ryan on Tue, 06/26/2007 - 09:48
Ryan

Posts: 1693
Joined: 09/26/2006

This is just an announcement to all those that care to say that the initial PayPal integration drive is done. The result is a master-module that integrates the following PayPal services with Ubercart:

Website Payments Standard - customers are redirected to PayPal after reviewing their order to complete payment
Website Payments Pro - customers checkout through Ubercart and PayPal is used as a payment gateway for you to process credit cards from within your site
Express Checkout - customers are redirected to PayPal where they login to their PayPal accounts; they are then sent back to your Ubercart site to finish checkout, choosing a shipping method and providing a company name/phone number if needed before approving the total payment
Instant Payment Notifications - Ubercart will receive payment information from PayPal and log it to your orders
All of this can be previewed on the Livetest. To test all the services, you will need to have a Sandbox account at PayPal. There will be a link once you try to complete payment that lets you register.

If you want to give it a shot on your own site, download the attached module. It may not work with Alpha 6c due to changes made in other modules. You can download the latest code from the Bazaar repository. There will be an Alpha 6d release as soon as this is tested and certified by PayPal that includes the module and a host of other changes.

You should go to your PayPal account profile to get API credentials necessary for Website Payments Pro/Express Checkout. Also, you'll want to turn on Instant Payment Notifications, but leave the URL field empty as it is supplied by the module.

Using some of these services requires you to have a Premier or Business Account with PayPal, and fees may apply (particularly for credit card processing). Once you have installed the module, you can adjust the settings from the payment gateway configuration menus.

To support Ubercart, if you have not yet signed up for your PayPal account, please use our referral link!

https://www.paypal.com/us/mrb/pal=6NXAPNGSS6DFJ

I have compiled, trimmed, revised, and added to work from the following members:
cosmo83@drupal.org, izi, olav@drupal.org, and patrickharris

Thanks guys.

EDIT: DOWNLOAD REMOVED. NOW IN ALPHA 7.

Add new comment
permalinkTue, 06/26/2007 - 11:10
cosmo83@drupal.org

Posts: 47
Joined: 05/22/2007

I think the table is not created. I have this error after the order has been compleetd.

user warning: Table 'vingowine.uc_payment_paypal_ipn' doesn't exist query: SELECT txn_id FROM uc_payment_paypal_ipn WHERE order_id = 3 ORDER BY received ASC in /var/www/vhosts/vingo.biz/httpdocs/includes/database.mysql.inc on line 172.

reply
permalinkTue, 06/26/2007 - 11:21
Ryan

Posts: 1693
Joined: 09/26/2006

It's good in the install file in that package. It may be you need to re-enable it if you were simply replacing this with a previous version.

reply
permalinkTue, 06/26/2007 - 16:12
Lifeischoice

Posts: 41
Joined: 03/22/2007

Thank you Ryan and others for the module...I am still not sure if this module can now be used for membership subscription?

reply
permalinkTue, 06/26/2007 - 19:21
drupaljunkies
Posts: 9
Joined: 06/05/2007

2checkout next please! pretty please.

reply
permalinkTue, 06/26/2007 - 21:22
Lifeischoice

Posts: 41
Joined: 03/22/2007

Downloaded the module and started testing...so far so good...working for sandbox checkout...still searching for how to do subscription...

reply
permalinkWed, 06/27/2007 - 07:35
Ryan

Posts: 1693
Joined: 09/26/2006

Yeah, subscriptions are still on the module's to-do list, but mostly because there is no way to designate products as requiring recurring payment. That's going to take a special product module before I can make it work with any particular payment gateway. I thought someone may have been working on that, but we may have to knock it out eventually.

In other news, when I was trying to get this code certified, I found out that I had in fact done part of Express Checkout wrong... so I've got to rework that a little today. Will post back more in a bit.

reply
permalinkWed, 06/27/2007 - 10:48
Lifeischoice

Posts: 41
Joined: 03/22/2007

Thanks for the clarification...

reply
permalinkThu, 06/28/2007 - 08:27
Ryan

Posts: 1693
Joined: 09/26/2006

Updated the zip... Apparently I had more work to do. I had to separate out the Express Checkout Mark Flow (where a customer bypasses the yellow Express Checkout button but then chooses PayPal as a payment method) from the Website Payments Standard which is just a redirected shopping cart completion. If you have a sandbox account, you should see the difference. PayPal is about to do integration testing.

I'm still tweaking this to add a few more error messages to help customers and to make the code a wee-bit smaller. Some code has been reused, so I'm going to break those places out into separate functions.

See http://www.ubercart.org/paypal for a little more information on using PayPal in Ubercart.

reply
permalinkSat, 06/30/2007 - 08:14
Oliver
Posts: 18
Joined: 05/12/2007

A shop I'm currently setting up uses Swiss Francs, so I added CHF as another currency code for transactions with Website Payments Standard in uc_payment_method_paypal_wps():

'#options' => drupal_map_assoc(array('AUD', 'CAD', 'CHF', 'EUR', 'GBP', 'JPY', 'USD'))

Maybe the list of currencies available in the payment settings could be associated with countries imported under country settings?

--

2000 Watt Society!

reply
permalinkMon, 07/02/2007 - 08:22
Ryan

Posts: 1693
Joined: 09/26/2006

Not sure... the hard coded list was actually taken from the PayPal API documentation. I'm kind of curious to see if you can get it to work w/ passing CHF as your currency code.

reply
permalinkMon, 07/02/2007 - 14:08
Ryan

Posts: 1693
Joined: 09/26/2006

Just a note to say that PayPal has completed the integration testing and given us their shiny little logo to display on the front page. Hopefully other integrated systems will be popping up there in the future.

You can bet I'll be posting a link to our page in the solutions directory as soon as it's up. Now maybe I can get some work on the site done.

reply
permalinkTue, 07/03/2007 - 03:17
Oliver
Posts: 18
Joined: 05/12/2007

As of this page PayPal currently allows managing balances in these currencies:

Canadian Dollars
Euros
Pounds Sterling
U.S. Dollars
Yen
Australian Dollars
New Zealand Dollars
Swiss Francs
Hong Kong Dollars
Singapore Dollars
Swedish Kronor
Danish Kroner
Polish Zloty
Norwegian Kroner
Hungarian Forint
Czech Koruna
In my sandbox account I can receive payments in CHF, no problem. Also, the currency code shows correctly on the payment pages.

--

2000 Watt Society!

reply
permalinkTue, 07/03/2007 - 07:53
Ryan

Posts: 1693
Joined: 09/26/2006

Excellent! Added those in and re-uploaded.

reply
permalinkTue, 07/24/2007 - 06:55
rio_gio

Posts: 5
Joined: 06/13/2007

Any news on when this will be available for download?

I'd really like to have it.

reply
permalinkTue, 07/24/2007 - 07:29
Ryan

Posts: 1693
Joined: 09/26/2006

This is bundled in the latest release, Alpha 7b. It takes advantage of some functions added along the way between releases, so you'll need to do a full upgrade (backup!, install Alpha 7b over the old version, and run update.php on your site).

Archive Forum Instructions By: Ryan (6 replies) Wed, 08/08/2007 - 14:14