Jump to:

113 Posts in 222 Topics by 53 members

Payments and Payment Gateway / APIs

SilverStripe Forums » Payments and Payment Gateway / APIs » setting config details for payment methods failing

This is a forum for discussing SilverStripe can-do payments and their APIs / Gateways.

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

Page: 1
Go to End
Author Topic: 1266 Views
  • Futureweb
    Avatar
    Community Member
    232 Posts

    setting config details for payment methods failing Link to this post

    Hi all,

    in mysite/_config.php or ecommerce/_config.php, I can add payment types

    Payment::set_supported_methods(array(
    'PayPalPayment' => 'Credit Card (Paypal)'
    ));

    however, if i try and set any variables

    eg PayPalPayment::setPayPalRealAccount('info@mysite.com');

    if just get fatal error calls...

    Fatal error: Call to undefined method PayPalPayment::setPayPalRealAccount() in /home/mysite/public_html/ecommerce/_config.php on line 30

    any suggestions?

    cheers

    1266 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.