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.

Archive

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

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

A simple step-by-step guide to Paypal integration


Reply

7 Posts   8567 Views

Avatar
Pixel

9 July 2008 at 3:00am Community Member, 78 Posts

Is there any step-by-step documentation for integrating Paypal within the ecommerce module? I have not used the ecomm module before and so am completely unsure of what to do.

Avatar
dio5

9 July 2008 at 9:13pm Community Member, 501 Posts

Hi,

take a look at this thread, it might help:

http://www.silverstripe.com/extending-hacking-silverstripe-forum/flat/42312?start=8

Avatar
Pixel

9 July 2008 at 9:33pm Community Member, 78 Posts

Hi, yeah I've been following what AK has put - it was the only guide I could find however when I go to the checkout and fill out the form and then place the order
http://www.mySSsite.co.uk/checkout/?executeForm=OrderForm - I get a blank page. Dev mode says it cannot find payment.ss.
Im a bit of a noob when it comes to code and debugging

Avatar
The Frenchy

17 July 2008 at 12:10pm Core Development Team, 40 Posts

I have just updated the Ecommerce documentation about the [url=http://doc.silverstripe.com/doku.php?id=modules:ecommerce#setting_up_paypal]PayPal integration[/url].

Have a look at the code of PayPalPayment.php, you'll find a lot of static functions to customize the style of the PayPal site (like add your logo on the PayPal interface).

Avatar
Pixel

17 July 2008 at 9:58pm (Last edited: 17 July 2008 10:08pm), Community Member, 78 Posts

Thank you - much appreciated. I now have Paypal up and running, however I am unsure on how

if(Director::isLive()) {
   PayPalPayment::set_account_email('jhljhj@hghgdf.com');
} else {
   PayPalPayment::set_test_mode('jhljhj@hghgdf.com');
}

works when the PayPalPayment.php says you must configure:

$setPayPalRealAccount;
$setPayPalTestAccount;
$setPayPalUseTestAccount;

Also - how does the Account work? How would a customer create an account or view their account? I noticed this when I canceled the order and returned to the site - i was taken to the Account Order Incomplete page saying that "Your order details have been saved, however you need to complete your order." with the summary below. Where has it been saved?
Is there a way to remove the Account feature completely?
            
         

Avatar
Pixel

17 July 2008 at 10:14pm Community Member, 78 Posts

Also is there a way to rest the order and product numbers before the site goes live to the general public?

Avatar
Sam

18 July 2008 at 3:15pm Administrator, 685 Posts

You could try deleting the Order table and then visiting db/build?flush=1 again.