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.

Payments and Payment Gateway / APIs

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

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

setting config details for payment methods failing


Reply

1345 Views

Avatar
Futureweb

3 June 2011 at 9:48pm Community Member, 233 Posts

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