Download the PHP package tanatoss/merchant-sdk-php without Composer
On this page you can find all versions of the php package tanatoss/merchant-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package merchant-sdk-php
PayPal PHP Merchant SDK
The merchant SDK can be used for integrating with the Express Checkout, Mass Pay, Web Payments Pro APIs.
This SDK is deprecated. It is strongly recommended that new implementations use the PHP Rest SDK
Prerequisites
PayPal's PHP Merchant SDK requires
- PHP 5.2 and above
- curl/openssl PHP extensions
Running the sample
To run the bundled sample, first copy the samples folder to your web server root. You will then need to install the SDK as a dependency using either composer (PHP V5.3+ only) or by running a custom installation script provided with the SDK.
If using composer, run composer update
from the samples folder. Otherwise, run install.php from merchant-sdk-php/samples directory
Using the SDK
To use the SDK,
-
Create a composer.json file with the following contents.
- Install the SDK as a dependency using composer or the install.php script.
- Require
vendor/autoload.php
ORPPBootStrap.php
in your application depending on whether you used composer or the custom installer. - Choose how you would like to configure the SDK - You can either
- Create a hashmap containing configuration parameters and pass it to the service object OR
- Create a
sdk_config.ini
file and set the PP_CONFIG_PATH constant to point to the directory where this file exists.
- Instantiate a service wrapper object and a request object as per your project's needs.
- Invoke the appropriate method on the service object.
For example,
Authentication
The SDK provides multiple ways to authenticate your API call.
SDK Configuration
The SDK allows you to configure the following parameters-
- Integration mode (sandbox / live)
- (Multiple) API account credentials.
- HTTP connection parameters
- Logging
Dynamic configuration values can be set by passing a map of credential and config values (if config map is passed the config file is ignored)
Alternatively, credential and configuration can be loaded from a file.
You can refer full list of configuration parameters in wiki page.
Please refer to the sample config file provided with this bundle for more.
Instant Payment Notification (IPN)
Please refer to the IPN-README in 'samples/IPN' directory.
Troubleshooting
Links
- API Reference - https://developer.paypal.com/webapps/developer/docs/classic/api/#merchant
- If you need help using the SDK, a new feature that you need or have a issue to report, please visit https://github.com/paypal/merchant-sdk-php/issues