This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

The Payum extension. Rapid extensino development

dev-master / 1.0.x-dev 2016-07-06 15:25 UTC

This package is not auto-updated.

Last update: 2021-11-27 04:02:20 UTC


The Payum extension to rapidly build new extensions.

  1. Create new project
$ composer create-project payum/skeleton
  1. Replace all occurrences of payum with your vendor name. It may be your github name, for now let's say you choose: acme.
  2. Replace all occurrences of skeleton with a payment gateway name. For example Stripe, Paypal etc. For now let's say you choose: paypal.
  3. Register a gateway factory to the payum's builder and create a gateway:

use Payum\Core\PayumBuilder;
use Payum\Core\GatewayFactoryInterface;

$defaultConfig = [];

$payum = (new PayumBuilder)
    ->addGatewayFactory('paypal', function(array $config, GatewayFactoryInterface $coreGatewayFactory) {
        return new \Acme\Paypal\PaypalGatewayFactory($config, $coreGatewayFactory);

    ->addGateway('paypal', [
        'factory' => 'paypal',
        'sandbox' => true,

  1. While using the gateway implement all method where you get Not implemented exception:

use Payum\Core\Request\Capture;

$paypal = $payum->getGateway('paypal');

$model = new \ArrayObject([
  // ...

$paypal->execute(new Capture($model));



Skeleton is released under the MIT License.