finickydev / pphelper
A helper library written in PHP, for PayPal API.
dev-master
2017-02-10 12:24 UTC
Requires
- php: >=5.3.9
- nesbot/carbon: ~1.18
- paypal/rest-api-sdk-php: 1.5.0
- rmccue/requests: > 1.0
- symfony/translation: ~2.8
This package is not auto-updated.
Last update: 2024-04-22 12:58:05 UTC
README
A helper library written in PHP, for PayPal API.
This library is supporting only PayPal Recurring Payments
for the present.
Installation
Install the latest version with
$ composer require finickydev/pphelper
Basic Usage
<?php use FinickyDev\ppHelper\ppHelperHq; // Set timezone ppHelperHq::setTimezone('Europe/Istanbul'); // Set PayPal Client Credentials ppHelperHq::setClientCredentials('pp_client_id', 'pp_client_secret'); // Set PayPal Client Settings ppHelperHq::updateClientSettings(['mode' => 'sandbox']); // Get PayPal Client Settings $clientSettings = ppHelperHq::getClientSettings(); // Get billing plan details $billingPlan = ppHelperHq::newBillingPlan()->get('billing_plan_id'); // Get billing agreement details $billingAgreement = ppHelperHq::newBillingAgreement()->get('billing_agreement_id'); ...
About
Author
FinickyDev - finickydev@gmail.com
License
ppHelper is licensed under the MIT License - see the LICENSE
file for details