PayPal SDK for PHP Quick Start Instructions ======================== Note: These instructions assume you are running Apache 2 on Linux 1. Enable Apache modules and APXS (Apache Extension Tool) In your Apache root directory, run: ./configure –enable-mod=so --with-apxs /usr/local/apache/bin/apxs 2. Download and install cURL and OpenSSL http://us4.php.net/manual/en/ref.curl.php http://us2.php.net/openssl 3. Configure PHP with cURL an OpenSSL In your PHP root directory, run: ./configure --with-curl --with-openssl 4. Use PEAR to install the following standard components: a. pear install NET_Url b. pear install NET_Socket c. pear install HTTP_Request d. pear install Log 5. Install the SDK PEAR Components cd SDK_root/Services_PayPal pear install package.xml 6. Create Test Account a. Select Sandbox from the Developer Central main menu. b. Click the Create Account link to create your test account by choosing the Business Account option and following the instructions on that page. c. Fill in the form with test information and click the Sign Up button. d. Return to the Developer Central main menu. e. Select the Email tab and and locate the ‘Activate Your PayPal account’ email. f. Click the link in the email to confirm the email address. Test emails are only sent to your email box in Developer Central. g. Enter your password and click the Continue button. h. Add a bank account using a test bank name. i. Click the Continue button to finish adding a bank account. j. Click the Confirm Bank Account link in the left column on the Overview page. k. Click the Submit button. l. Click the Continue button to return to the Overview page. m. Click the Add credit card link in the left hand column of the page. n. Add a test credit card name and click the Add Card button to complete this process. 7. Download Certificate a. Launch the Sandbox. b. Log in to the Sandbox. c. Navigate to My Account > Profile. d. Click the API Access link. e. Click the API Certificate Request link. f. Follow the on-screen instructions to complete your certificate request. g. To download your PayPal API test certificate: 1. Log in to Developer Central. 2. Click the Test Certificates tab. 3. Click Download at the lower right. 4. Save the file to your local disk. 8. WebConsole a. Copy the WebConsole directory from your PHP SDK installation to your Apache htdocs/php-sdk directory. b. Start the apache server c. Bring up http://yourWebServer:port/php-sdk/WebConsole/index.php The SDK web console page appears. d. Create a profile. e. Select ‘Call API’ f. See the code snippet screen. You can copy the generated code and use it on your system. g. Run the code.