Important: PayPal for Partners is a limited-release solution at this time. It is available to select partners for approved use cases. For more information, reach out to your PayPal account manager.
-
Update
PayConfig.php
with your "Partner credentials", "Seller emails", and "Seller Payer IDs". If you do not have the credentials, please reach out to your PayPal account manager. -
Verify that all the files are in place by running and passing the Unit tests (process shown below).
wget https://phar.phpunit.de/phpunit-5.7.phar (Download a version of PHPunit consisent with your php version) mv phpunit-5.7.phar /usr/local/bin/phpunit chmod a+x /usr/local/bin/phpunit phpunit --version phpunit Tests/unit_test.php
- Download PHP server. Use a server such as XAMPP to be able to host the demo code sample.
- Browse to the
htdocs
directory of XAMPP. Unzip the downloaded demo code folder and place it in thishtdocs
directory. - Start the Apache server in XAMPP from the XAMPP control panel.
- Open the website in the browser and access it as:
http://<your_domain>/<php_code_folder_name>/index.php
Here,your_domain
will be localhost if hosting on your local machine. Thephp_code_folder_name
is the name of the folder under which the downloaded code resides. - Read further instructions when
index.php
in opened in a browser.
The starting point is index.php
.
Code released under LICENSE.