Get Started
In this chapter we are going to setup payum package and do simple purchase using paypal express checkout. Look at sandbox to find more examples.
Installation
php composer.phar require payum/payum-laravel-package payum/xxxNow you have all codes prepared and ready to be used.
Configuration
Register provider:
<?php
// app/config/app.php
return array(
'providers' => array(
'Payum\LaravelPackage\PayumServiceProvider',
),
);Configure builder. You are free to use other builder's methods.
In Laravel 4, add the following to bootstrap/start.php or other place where you can use App::resolving method.
In Laravel 5, create new service provider or add to the default app/Providers/AppServiceProvider.php register method:
Prepare payment
Lets create a controller where we prepare the payment details.
Here's you may want to modify a payment_done route. It is a controller where the payer will be redirected after the payment is done, whenever it is success failed or pending. Read a dedicated chapter about how the payment done controller may look like.
Supporting Payum
Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our customers. If you'd like to join them, please consider:
Last updated