Download the PHP package obydul/larapal without Composer
On this page you can find all versions of the php package obydul/larapal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download obydul/larapal
More information about obydul/larapal
Files in obydul/larapal
Package larapal
Short Description LaraPal is a laravel plugin for processing payments through PayPal.
License MIT
Informations about the package larapal
LaraPal
Introduction
By using this plugin you can process or refund payments from PayPal in your Laravel application.
PayPal API Credentials
This package uses the classic paypal express checkout. Refer to this link on how to create API credentials:
https://developer.paypal.com/docs/classic/api/apiCredentials/#create-an-api-signature
Installation
-
Use following command to install:
-
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 service provider to your
$providers
array inconfig/app.php
file like: - Run the following command to publish configuration:
Installation completed.
Configuration
-
After installation, you need to set paypal credentialsin .env file.
- Now optimize the app:
php artisan optimize && php artisan config:clear
.
Usage
Following are some ways through which you can access the LaraPal provider:
doExpressCheckout
doRefund
Example
After installing LaraPal, create routes and create a controller named 'PayPalController':
Now in your PayPalController add this: PayPalController.php
Now just visit the URL to make an action:
After successful payment, you will be redirected to http://example.com/payment-status
and will see a message like: Success! Transaction ID: 9TR987531T2702301
.
License
The MIT License (MIT). Please see License File for more information.
Others
Inspired by paypal-express-checkout and thank you, romaonthego.
In case of any issues, kindly create one on the Issues section.
Thank you for installing LaraPal.