Skip to content

Jknoorisys/paypal-split-payment-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laravel PayPal Split Payment Integration Package

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Installation

Require this package, with Composer, in the root directory of your project.

$ composer require noorisys/paypal-split-payment

Add the service provider to config/app.php in the providers array.

Noorisys\PaypalPayment\Providers\PaypalSplitPaymentServiceProvider::class,

Configuration

Laravel PayPal requires connection configuration. To get started, you'll need to publish all vendor assets:

$ php artisan vendor:publish --provider="Noorisys\PaypalPayment\Providers\PaypalSplitPaymentServiceProvider" --force

This will create a config/paypal.php file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

You are free to change the configuration file as needed, but the default expected values are below:

    'mode'    => env('PAYPAL_MODE', 'sandbox'), // Can only be 'sandbox' Or 'live'. If empty or invalid, 'live' will be used.
    'sandbox' => [
        'client_id'         => env('PAYPAL_SANDBOX_CLIENT_ID', ''),
        'client_secret'     => env('PAYPAL_SANDBOX_CLIENT_SECRET', ''),
        'app_id'            => 'APP-80W284485P519543T',
    ],
    'live' => [
        'client_id'         => env('PAYPAL_LIVE_CLIENT_ID', ''),
        'client_secret'     => env('PAYPAL_LIVE_CLIENT_SECRET', ''),
        'app_id'            => env('PAYPAL_LIVE_APP_ID', ''),
    ],

Run APIs on Postman

import postman collection via link and run APIs

https://api.postman.com/collections/18476697-5ffb19b3-5c14-41f4-836b-713373fd249d?access_key=PMAT-01GXQ7VB17XAP93EQGA2C91WA0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published