Download the PHP package escuccim/paypal without Composer
On this page you can find all versions of the php package escuccim/paypal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download escuccim/paypal
More information about escuccim/paypal
Files in escuccim/paypal
Package paypal
Short Description Laravel-Paypal is simple package help you process direct credit card payments, stored credit card payments and PayPal account payments with your Laravel 5 projects using paypal REST API SDK.
License BSD-2-Clause
Informations about the package paypal
laravel-paypal
laravel-paypal
handless direct credit card payments, stored credit card payments and PayPal account balance payments. It's developed for use with Laravel 5 and leverages the latest Paypal REST API SDK for PHP.
Installation
-
Run this command in your Laravel project root to install using Composer
composer require netshell/paypal dev-master
-
Next, add the service provider to
app/config/app.php
in theproviders
array. - Finally, add an alias to
app/config/app.php
in thealiases
array.
Configuration
Use the $apiContext->setConfig()
method to pass in your PayPal details.
Below is one example of sandbox configuration in a controller constructor:
Given you have set your developer information in config/services.php
:
Code Samples
List Payments
Payment Details
Example Controller
This example provides you have a controller that runs the package configuration like in the snippet in the Configuration section.
Customize Paypal payment page
First we need to create a new WebProfile for obtain the id, then in the future we can simply set this id to the payment object.
Now set the WebProfile's id to the payment object $payment->setExperienceProfileId("XP-ABCD-EFGH-ILMN-OPQR");
All versions of paypal with dependencies
illuminate/support Version ~5.0
ext-curl Version *
ext-json Version *
paypal/rest-api-sdk-php Version 1.6.4