noorisys / paypal-split-payment
There is no license information available for the latest version (1.0.0) of this package.
Laravel PayPal Split Payment Integration
1.0.0
2023-04-10 11:13 UTC
Requires
- barryvdh/laravel-dompdf: ^2.0
- srmklive/paypal: ~3.0
This package is auto-updated.
Last update: 2025-03-11 08:16:49 UTC
README
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