https://github.com/flancer32/mage_ext_api_pp_sdk
Magento extension to use PayPal SDK to connect to PayPal REST API
https://github.com/flancer32/mage_ext_api_pp_sdk
Last synced: about 1 year ago
JSON representation
Magento extension to use PayPal SDK to connect to PayPal REST API
- Host: GitHub
- URL: https://github.com/flancer32/mage_ext_api_pp_sdk
- Owner: flancer32
- License: mit
- Created: 2015-04-09T06:40:12.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-28T06:57:21.000Z (about 11 years ago)
- Last Synced: 2024-04-21T13:53:00.732Z (about 2 years ago)
- Language: PHP
- Homepage:
- Size: 284 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PayPal PHP SDK for Magento
Magento extension that adopts [PayPal PHP SDK](https://github.com/paypal/PayPal-PHP-SDK) classes to be used in Magento classes.
## Installation
### Composer
Add to your `composer.json`:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/flancer32/mage_ext_api_pp_sdk"
}
],
"require": {
"flancer32/mage_ext_api_pp_sdk": "dev-master"
}
}
### External library
Download [PayPal PHP SDK](https://github.com/paypal/PayPal-PHP-SDK/releases) and extract archive to the local drive.
Setup path to ```./lib/``` folder in _System / Configuration / Advanced / Developer / PayPal PHP SDK / Path to SDK_:

## Usage
// Just call helper's initClassLoader() method ...
Mage::helper('flancer32_ppapi_helper')->initClassLoader();
// ... and use PayPal PHP SDK classes in your own code
$apiContext = new PayPal\Rest\ApiContext(
new PayPal\Auth\OAuthTokenCredential(
'clientId',
'clientSecret'
)
);
...