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.

Payments and Payment Gateway / APIs /

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

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

setting config details for payment methods failing


Go to End


2623 Views

Avatar
JonShutt

Community Member, 244 Posts

3 June 2011 at 9:48pm

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