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