Download the PHP package anouar/paypalpayment without Composer
On this page you can find all versions of the php package anouar/paypalpayment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anouar/paypalpayment
More information about anouar/paypalpayment
Files in anouar/paypalpayment
Package paypalpayment
Short Description laravel-paypalpayment is simple package help you process direct credit card payments, stored credit card payments and PayPal account payments with your L4 projects using paypal REST API SDK.
License BSD-2-Clause
Informations about the package paypalpayment
Important :The use of the PayPal REST /payments APIs to accept credit card payments is restricted by paypal and they recomand to use Braintree Direct if you want to accept credit card payments.
Update: I may re-create the package to use Braintree in future but with no deadline. You can also use the braintree/braintree_php library.
Note :
If you're going to use this package with Laravel 4, make sure to require the Laravel 4 branch:
laravel-paypalpayment
laravel-paypalpayment is a simple package that helps you to process direct credit card payments, stored credit card payments and PayPal account payments with your Laravel 4/5 projects using PayPal REST API SDK.
Donation :
donate a cup of :coffee: :blush: :
Watch a Quick Demo
Installation
Install this package through Composer. To your composer.json
file:
Next, run composer update
.
Add the service provider to config/app.php
(app/config/app.php
for Laravel 4), in the providers
array.
Then add an alias under aliases
array.
Finaly Pulish the package configuration by running this CMD
php artisan vendor:publish --provider="Anouar\Paypalpayment\PaypalpaymentServiceProvider"
Configuration
Under config/paypal_payment.php
configuration file set your paypal client_id
and client_secert
keys
Samples
Note: If you are not fan of using facade calls, you can resove the paypal payment service like so app('paypalpayment')
then assign it to a property.
1-Using credit card as paypent method
Create new controller PaypalPaymentController
:
2-Using Express Checkout as payment method
3-List Payment
Add the index()
function to the PaypalPaymentController
Controller
4-Get Payment details
Add the show()
function to the PaypalPaymentController
Controller
Under the (routes.php
for previous versions) or web.php
file and register your routing.
Conclusion
Please feel free to report issues and open any PRs that you thinks will help to improve the package.
All versions of paypalpayment with dependencies
illuminate/support Version ~5.0
ext-curl Version *
ext-json Version *
paypal/rest-api-sdk-php Version 1.11.0