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.

Archive /

Our old forums are still available as a read-only archive.

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

new paypal payment code for ecommerce


Go to End


20 Posts   37493 Views

Avatar
cindycin

Community Member, 20 Posts

8 August 2008 at 6:56am

I'm pretty new to SS and PHP so this is a little confusing to me.

{name of class here}::setAccount($yourPPEmailHere);

Can I select a random class name? Something is telling me no... that it has to relate back to something.

Is there a simple walk-through for this module that has screenshots of some of these files and where the codes should be placed in them? I've read through all of the documentation and forum posts and still feel there are some missing pieces to the puzzle.

Any help will be greatly appreciated.

Avatar
Nicolaas

Forum Moderator, 224 Posts

8 August 2008 at 9:33am

PayPalPayment should be the name of the class (just check spelling!)

Avatar
cindycin

Community Member, 20 Posts

8 August 2008 at 12:14pm

Thanks Nicolass! with a little tweaking its working now.

Here is what I used if anyone else needs it...

PayPalPayment::setPayPalRealAccount('EMAIL ADDRESS HERE');

in the ecommerce/_config.php file

Avatar
Briohny

Community Member, 199 Posts

24 September 2008 at 9:50pm

Just a quick question on the paypal front... when my site is redirected to paypal there is no item description. Only a text box, price and quantity. How can i set it so that the item description is brought from the shopping cart into the paypal site?

Thanks.

Go to Top