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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   11096 Views

Avatar
CHD

Community Member, 219 Posts

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 ecommerce

and the latest payment module.
svn checkout http://svn.silverstripe.com/open/modules/payment/branches/0.3 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:
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!!!!!

Avatar
dfnetchii

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:

http://downloadsvn.codeplex.com/

Cheers

Avatar
CHD

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.
http://silverstripe.org/e-commerce-module-forum/show/261518#post261518

also, the upload function died today!
solution is here:
http://silverstripe.org/general-questions/show/281744?start=8

Avatar
DaveTh

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

Avatar
CHD

Community Member, 219 Posts

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/ ecommerce

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

Avatar
CHD

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?

Avatar
Graphicator

Community Member, 62 Posts

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 depreciated

Now 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"

Avatar
Jedateach

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.
http://code.google.com/p/silverstripe-ecommerce/downloads/detail?name=payment_paypal.zip

Go to Top