Download the PHP package amsgames/laravel-shop-gateway-paypal without Composer
On this page you can find all versions of the php package amsgames/laravel-shop-gateway-paypal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amsgames/laravel-shop-gateway-paypal
More information about amsgames/laravel-shop-gateway-paypal
Files in amsgames/laravel-shop-gateway-paypal
Package laravel-shop-gateway-paypal
Short Description PayPal gateway for Laravel Shop package.
License MIT
Informations about the package laravel-shop-gateway-paypal
PAYPAL GATEWAY (for Laravel Shop Package)
PayPal Gateway solution for Laravel Shop.
Gateways
This package comes with:
-
Direct Credit Card payments
- PayPal Express payments
Contents
- Installation
- Configuration
- Authentication
- Gateway Usage
- Direct Credit Card
- PayPal Express
- Configuration
- Usage
- License
- Additional Information
Installation
In order to install Laravel Shop, you can run
to your composer.json. Then run composer install
or composer update
.
Then in your config/shop.php
add
in the gateways
array.
Configuration
Authentication
Set your PayPal app authentication credentials in config/services.php
, like:
NOTE: Change sandbox
to false when going live.
Gateway Usage
Direct Credit Card
The only additional step needed for this to work is to add the credit card information before checkout
and before order placement
, like:
NOTE: If you are calling Shop::checkout()
in a different controller or view than Shop::placeOrder
, be sure to recall setCreditCard()
before calling Shop::placeOrder()
in your second controller. This package does not stores credit card data.
RECOMMENDATION: Use SSL to secure you checkout flow when dealing with credit cards.
PayPal Express
If you don't want to deal with credit card forms and SSL, you can us PayPal Express instead. PayPal Express handles the payment process outside your website and returns with the results.
Look at PayPal's documentation for more information about this process.
Configuration
PayPal will callback Laravel Shop and this gateway with the results. Laravel Shop will then redirect the customer to the route name set in config/shop.php
and will pass by as parameter the Order Id
. Set up this route before using this gateway.
Usage
License
This package is free software distributed under the terms of the MIT license.
Additional Information
This package uses the official PayPal PHP SDK.
All versions of laravel-shop-gateway-paypal with dependencies
illuminate/console Version ~5.0
illuminate/support Version ~5.0
paypal/rest-api-sdk-php Version *