raphael / paypal-payout
gateway of paypal payout
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/raphael/paypal-payout
Requires
This package is auto-updated.
Last update: 2025-10-06 12:26:32 UTC
README
This package is developed for a special client.
Installation
-
Install package
composer require raphael/paypal-payout -
publish config file
php artisan vendor:publishAfter publishing, edit config/paypal.php with your setting
return [ 'settings' => array( 'mode' => env('PAYPAL_MODE', 'sandbox'), 'http.ConnectionTimeOut' => 30, 'log.LogEnabled' => true, 'log.FileName' => storage_path() . '/logs/paypal.log', 'log.LogLevel' => 'ERROR' ), 'sandbox' => [ 'client_id' => env('PAYPAL_SANDBOX_CLIENT_ID', ''), 'secret' => env('PAYPAL_SANDBOX_SECRET', ''), 'webhook_id' => env('PAYPAL_SANDBOX_WEBHOOK_ID', ''), ], 'live' => [ 'client_id' => env('PAYPAL_LIVE_CLIENT_ID', ''), 'secret' => env('PAYPAL_LIVE_SECRET', ''), 'webhook_id' => env('PAYPAL_LIVE_WEBHOOK_ID', ''), ], ]; -
create table for payout log
php artisan migrate -
Set your paypal webhook url to
https://{your site url}/paypal/webhook
Usage
Create Payout
$payout = new \Raphael\PaypalPayout\PaypalPayout;
$receiver = 'test@email.com';
$amount = 10;
$log = $payout::createPayout($receiver, $amount);
You'll get log object if payout has been created, but get null if fails.