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.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

PayPal Option not showing


Go to End


2 Posts   1424 Views

Avatar
steve_nyhof

Community Member, 224 Posts

14 February 2010 at 5:53pm

I am using 2.3.3

I installed the latest ecommerce first, then the Payment module next, everything went well, no problems, however, the paypal option does not show up on the checkout page.

Anyone have some ideas as to what I am missing? Are there any options in the editor for paypal, or does everything get setup in the code files?

Avatar
Bambii7

Community Member, 254 Posts

29 June 2010 at 12:23pm

Edited: 29/06/2010 12:23pm

I'm using ss 2.3.7 and ecommerce v0.5.4
I enabled the paypal option by following the instructional documentation here http://doc.silverstripe.org/modules:ecommerce

by adding this to mysite/_config.php
// Define which payment methods your site uses.
Payment::set_supported_methods(array(
'ChequePayment' => 'Cheque Or Pay On Site',
'PayPalPayment' => 'PayPal (Credit Card)'
));

but getting a few errors when trying to configure the rest of paypal with my account information.
The PayPalPayment class thats packaged with the ecommerce plugin doesn't seem to be complete.
There is this old one form about 2 years ago it seems, which I don't think is compatible any more http://open.silverstripe.org/attachment/ticket/1760/PayPalPayment.php

the setup method outlined here is also a little out dated it seems http://www.silverstripe.org/archive/show/196242
the following methods to set your account emails don't exist
if(Director::isLive()) {
PayPalPayment::set_account_email('info@mysite.com');
} else {
PayPalPayment::set_test_mode('info@mysite.com');
}

..... It shouldn't be that hard to configure paypal, I'll try and suss it out.