aplr / laravel-paypal
Paypal SDK Bridge for Laravel
Requires
- php: >=7.0
- illuminate/support: 5.*
- paypal/rest-api-sdk-php: dev-2.0-beta
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~5.0
README
Introduction
The laravel-paypal
package allows you to use the Paypal-SDK in a more laravel-ish way.
Installation
Require the aplr/laravel-paypal package in your composer.json and update your dependencies:
$ composer require aplr/laravel-paypal
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
Aplr\LaravelPaypal\ServiceProvider::class,
If you want to use the facade to conveniently access the Paypal SDK, add this to your facades in app.php:
'Paypal' => Aplr\LaravelPaypal\Facade::class,
Configuration
The defaults are set in config/paypal.php. Copy this file to your own config directory to modify the values. You can publish the config using this command:
$ php artisan vendor:publish --provider="Aplr\LaravelPaypal\ServiceProvider"
When using the default package configuration, you can set the Paypal SDK credentials in your .env
file.