Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

How i got the latest eCommerce trunk to work with paypal

Go to End

39 Posts   8531 Views


Community Member, 219 Posts

31 August 2010 at 1:14am


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 ecommerce

and the latest payment module.
svn checkout payment

i 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:
$inputs['currency_code'] = $this->Currency;
$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!!!!!


Community Member, 10 Posts

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:



Community Member, 219 Posts

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.

also, the upload function died today!
solution is here:


Community Member, 14 Posts

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 problem

I keep getting " Javascript Parse Error"
when ever I tried to save and publish the Account and Checkup Page

I 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 108

Warning: 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


Community Member, 219 Posts

24 September 2010 at 1:48am

i used one of these:

svn checkout ecommerce
svn checkout ecommerce

sorry i dont know which one!
forgotten already... not sure if there is a way i can check?


Community Member, 219 Posts

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?


Community Member, 62 Posts

13 December 2010 at 12:32am

set allow_call_time_pass_reference to true in your php.ini it will go away. they are calling a function that was depreciated

Now my question,
When someone cancels their paypal order, they get an unthemed version of my site at this page ...
This then says "Page not found"


Forum Moderator, 238 Posts

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.

Go to Top