Download the PHP package hypnodev/larapal without Composer
On this page you can find all versions of the php package hypnodev/larapal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hypnodev/larapal
More information about hypnodev/larapal
Files in hypnodev/larapal
Package larapal
Short Description An easy way to integrate Paypal into Laravel
License MIT
Homepage https://github.com/hypnodev/larapal
Informations about the package larapal
A modern, easy and fluent way to allow your clients to pay with PayPal.
Installation
Via Composer
Publish the configuration with command:
Add these keys in your .env:
If you don't have yet credentials for PayPal API, please refer to Get Started - PayPal Developer
Usage
Add BillableWithPaypal
trait to your User model
This will add chargeWithPaypal
, subscribeWithPaypal
, getPaypalCurrency
, getShippingFields
to your user.
Then you can charge your user with method:
Or for subscription:
You can create a plan under "App Center" in your PayPal Merchant Dashboard
If you need to charge user with another currency different from the configuration, you can override getPaypalCurrency
method:
You can set default shipping info with getShippingFields
method
Change log
Please see the changelog for more information on what has changed recently.
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Cristian Cosenza
- All Contributors
License
license. Please see the license file for more information.