1999 Posts in 530 Topics by 433 members
E-Commerce Modules
SilverStripe Forums » E-Commerce Modules » How i got the latest eCommerce trunk to work with paypal
Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.
Moderators: martimiz, Nicolaas, Howard, Sean, Ryan M., biapar, Willr, Ingo, Jedateach, swaiba, simon_w
| Go to End | Next > | |
| Author | Topic: | 5166 Views |
-
How i got the latest eCommerce trunk to work with paypal

31 August 2010 at 1:14am
Hi,
so i've spent the last few days exploring the latest version of eCommerce that Jedateach and co. are working on. (with a little help from Bambii7's forum posts!)
i downloaded the latest version of SS 2.4.1
Checked out the latest burnbright branch of eCommerce
svn checkout http://silverstripe-ecommerce.googlecode.com/svn/branches/burnbright ecommerceand the latest payment module.
svn checkout http://svn.silverstripe.com/open/modules/payment/branches/0.3 paymenti then had to update my mysite/_config.php with the attached file.
im fairly sure some of that code isn't actually doing anything though! e.g - currently there is no shipping costs added to the order, i haven't got to that stage yet.i also updated my PayPalPayment.php file with the attached.
main change was line 170:
From
$inputs['currency_code'] = $this->Currency;
To
$inputs['currency_code'] = self::site_currency();as my currency was set in my config.php file for it to pick up.
now my orders go through fine! (it still says failure in dev mode, but live mode works)
i get an email from paypal confirming payment from customer, an email from paypal confirming receipt of payment to merchant and an email from mysite confirming the order and payment. (although this email still says payment status is "incomplete" but purchase is "complete" maybe thats because the funds havent cleared or something?? i'll look at this issue now.)
also, in the admin page the order status is blank. but when you open it to view, it shows payment as successful and the amount etc. i guess i need to do a little bit of investigating into this bit now.anyway, thats it! i think ive included everything i had to do, obviously the config file will have to be amended to your site details and your country/currency code.
any more advancements i make, i'll post up in this thread. (so subscribe!)
i really hope this helps some of you as it would have helped me!!!!!
-
Re: How i got the latest eCommerce trunk to work with paypal

3 September 2010 at 10:48am
Champion! Thanks for this, the dev thread was getting a little overwhelming.
Also for any rookies out there like myself, here is a really easy to use, no frills, SVN downloader I used:
http://downloadsvn.codeplex.com/
Cheers
-
Re: How i got the latest eCommerce trunk to work with paypal

3 September 2010 at 11:11am
glad it helped!
i also found the way to fix the symbol sign error on the checkout pge.
its in currency.php within the saphire core files.
http://silverstripe.org/e-commerce-module-forum/show/261518#post261518also, the upload function died today!
solution is here:
http://silverstripe.org/general-questions/show/281744?start=8 -
Re: How i got the latest eCommerce trunk to work with paypal

23 September 2010 at 10:51pm
Hi; can one of you provide a link for download a new silverstripe plus payment and latest version of e-commerce.
I have tried one week and still have no idea of what needed to be changed to track the installation problemI keep getting " Javascript Parse Error"
when ever I tried to save and publish the Account and Checkup PageI have followed the instruction of CHD and with the modification of _config.php and I am still getting the same error.
Any help?
Warning: Call-time pass-by-reference has been deprecated in
\silverstripe\burnbright\code\forms\OrderForm.php on line 108Warning: Call-time pass-by-reference has been deprecated in \silverstripe\burnbright\code\CheckoutPage.php on line 236
Warning: Call-time pass-by-reference has been deprecated in \silverstripe\burnbright\code\CheckoutPage.php on line 247
Warning: Call-time pass-by-reference has been deprecated in \silverstripe\burnbright\code\CheckoutPage.php on line 253
-
Re: How i got the latest eCommerce trunk to work with paypal

24 September 2010 at 1:48am
i used one of these:
svn checkout http://silverstripe-ecommerce.googlecode.com/svn/branches/burnbright ecommerce
svn checkout http://silverstripe-ecommerce.googlecode.com/svn/trunk/ ecommercesorry i dont know which one!
forgotten already... not sure if there is a way i can check? -
Re: How i got the latest eCommerce trunk to work with paypal

24 September 2010 at 1:49am
haha silly me, just realised i posted the link in my previous entry!
i used the burnbright version.you'll have to check with the authors if they have changed it since my post though, perhaps they've made updates and its not stable anymore?
-
Re: How i got the latest eCommerce trunk to work with paypal

13 December 2010 at 12:32am
Sunny,
set allow_call_time_pass_reference to true in your php.ini it will go away. they are calling a function that was depreciatedNow my question,
When someone cancels their paypal order, they get an unthemed version of my site at this page ...
/paypal/complete?custom=14-97ef8c3b13ad0fe01076f65be99c0f3f
This then says "Page not found" -
Re: How i got the latest eCommerce trunk to work with paypal

9 February 2011 at 11:49am
Hi all, just letting you I've also built a re-vamped paypal payment type that makes use of the PayPal API.
http://code.google.com/p/silverstripe-ecommerce/downloads/detail?name=payment_paypal.zip
| 5166 Views | ||
| Go to Top | Next > |




