Download the PHP package bgaetealvear/paypal-laravel-58 without Composer
On this page you can find all versions of the php package bgaetealvear/paypal-laravel-58. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bgaetealvear/paypal-laravel-58
More information about bgaetealvear/paypal-laravel-58
Files in bgaetealvear/paypal-laravel-58
Package paypal-laravel-58
Short Description Laravel plugin For Processing Payments Through Paypal Express Checkout. Can Be Used Independently With Other Applications.
License MIT
Informations about the package paypal-laravel-58
Laravel PayPal
- Introduction
- PayPal API Credentials
- Installation
- Configuration
- Usage
- Support
Introduction
By using this plugin you can process or refund payments and handle IPN (Instant Payment Notification) from PayPal in your Laravel application.
This plugin supports the new paypal rest api.
PayPal API Credentials
This package uses the new paypal rest api. Refer to this link on how to create API credentials:
https://developer.paypal.com/docs/api/overview/
Installation
- Use following command to install:
Perform the following steps if you are using Laravel 5.4 or less.
-
Add the service provider to your
providers[]
array inconfig/app.php
file like: -
Add the alias to your
aliases[]
array inconfig/app.php
file like: - Run the following command to publish configuration:
Configuration
-
After installation, you will need to add your paypal settings. Following is the code you will find in config/paypal.php, which you should update accordingly.
- Add this to
.env.example
and.env
Usage
Following are some ways through which you can access the paypal provider:
Override PayPal API Configuration
You can override PayPal API configuration by calling setApiCredentials
method:
Get Access Token
After setting the PayPal API configuration by calling setApiCredentials
method. You need to get access token before performing any API calls
Set Currency
By default the currency used is USD
. If you wish to change it, you may call setCurrency
method to set a different currency before calling any respective API methods:
Support
This plugin only supports Laravel 5.1 to 5.8.
- In case of any issues, kindly create one on the Issues section.
- If you would like to contribute:
- Fork this repository.
- Implement your features.
- Generate pull request.
All versions of paypal-laravel-58 with dependencies
illuminate/support Version ~5.1|~5.2|~5.3|~5.4|~5.5|~5.6|~5.7|~5.8
nesbot/carbon Version ~1.0|~2.0