Jump to:

2088 Posts in 1008 Topics by 455 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, Sean, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1 2 3 4 5
Go to End
Author Topic: 6401 Views
  • CHD
    Avatar
    Community Member
    218 Posts

    How i got the latest eCommerce trunk to work with paypal Link to this post

    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!!!!!

  • dfnetchii
    Avatar
    Community Member
    10 Posts

    Re: How i got the latest eCommerce trunk to work with paypal Link to this post

    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

  • CHD
    Avatar
    Community Member
    218 Posts

    Re: How i got the latest eCommerce trunk to work with paypal Link to this post

    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

  • DaveTh
    Avatar
    Community Member
    14 Posts

    Re: How i got the latest eCommerce trunk to work with paypal Link to this post

    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

  • CHD
    Avatar
    Community Member
    218 Posts

    Re: How i got the latest eCommerce trunk to work with paypal Link to this post

    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?

  • CHD
    Avatar
    Community Member
    218 Posts

    Re: How i got the latest eCommerce trunk to work with paypal Link to this post

    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?

  • Graphicator
    Avatar
    Community Member
    62 Posts

    Re: How i got the latest eCommerce trunk to work with paypal Link to this post

    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"

  • Jedateach
    Avatar
    Forum Moderator
    227 Posts

    Re: How i got the latest eCommerce trunk to work with paypal Link to this post

    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

    6401 Views
Page: 1 2 3 4 5
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.