System Pay gateway for Payum
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ansible
bin
src
tests
.gitignore
.php_cs
.travis.yml
LICENSE
Makefile
README.md
Vagrantfile
composer.json
composer.lock
phpstan.neon
phpunit.xml

README.md

Payum System Pay

A Payum gateway to use SystemPay (a French payment system)

Latest Stable Version Build Status

Requirements

Installation

$ composer require yproximite/payum-system-pay

Configuration

With PayumBundle (Symfony)

First register the gateway factory in your services definition:

# config/services.yaml or app/config/services.yml
services:
    yproximite.system_pay_gateway_factory:
        class: Payum\Core\Bridge\Symfony\Builder\GatewayFactoryBuilder
        arguments: [Yproximite\Payum\SystemPay\SystemPayGatewayFactory]
        tags:
            - { name: payum.gateway_factory_builder, factory: system_pay }

Then configure the gateway:

# config/packages/payum.yaml or app/config/config.yml

payum:
  gateways:
    system_pay:
      factory: system_pay
      vads_site_id: 'change it' # required 
      certif_prod: 'change it' # required 
      certif_test: 'change it' # required 
      sandbox: true

With Payum

<?php
//config.php

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

/** @var Payum $payum */
$payum = (new PayumBuilder())
    ->addDefaultStorages()

    ->addGateway('gatewayName', [
        'factory' => 'system_may',
        'vads_site_id' => 'change it',
        'certif_prod'  => 'change it',
        'certif_test'  => 'change it',
        'sandbox'      => true,
    ])

    ->getPayum()
;