Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » can't get paypal working

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 615 Views
  • Briohny
    Avatar
    Community Member
    199 Posts

    can't get paypal working Link to this post

    I've followed all instructions in http://doc.silverstripe.com/doku.php?id=modules:ecommerce however when i add the code:

    // Define which payment methods your site uses.
    Payment::set_supported_methods(array(
       'PaypalPayment' => 'Credit card (Paypal)'
    ));

    My checkout page doesn't appear. Instead it returns a HTTP 500 error. If i change it to 'WorldpayPayment' it works fine.

    This line of code also returns an error:

    // Check if the site is in 'live' mode, use the live credentials.
    // otherwise, use test credentials instead to be careful.
    if(Director::isLive()) {
       PayPalPayment::set_account_email('mymail@mydomain.com');
    } else {
       PayPalPayment::set_test_mode('mymailtest@mydomaintest.com');
    }

    Any ideas?
    Thanks

    615 Views
Page: 1
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.