Skip to content

FinickyDev/ppHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ppHelper

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

About

A helper library written in PHP, for PayPal API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages