barbondev/payment-paypoint-hosted-bundle

Payment Bundle providing access to the hosted PayPoint (was SecPay) gateway

dev-develop 2014-12-11 10:30 UTC

This package is not auto-updated.

Last update: 2024-05-07 02:04:06 UTC


README

Build Status

PayPoint Hosted Gateway

A PayPoint hosted payment gateway plugin implementation for the JMSPaymentPaypalBundle used with the Symfony framework.

Installation

This is a composer package, so include as a composer dependency in composer.json

"require": {
    ...
    "barbondev/payment-paypoint-hosted-bundle": "dev-master"
},

Update the composer vendors and autoloader

$ php composer.phar update

Update the Symfony kernel app/AppKernel.php by adding the bundle

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new JMS\Payment\CoreBundle\JMSPaymentCoreBundle(),
    new Barbondev\Payment\PayPointHostedBundle\BarbondevPaymentPayPointHostedBundle(),
    // ...
);

Install the routing configuration in app/config/routing.yml

barbondev_payment_paypoint_hosted:
    resource: "@BarbondevPaymentPayPointHostedBundle/Resources/config/routing.xml"
    prefix:   /

Configuration

In app/config/config.yml configure the following parameters:

barbon_payment_paypoint_hosted:
    merchant: ABC123
    gateway_url: https://www.secpay.com/java-bin/ValCard
    remote_password: f00b4r
    test_status: 'true'
    repeat: 'true'
    test_mpi_status: 'true'
    usage_type: E
    dups: 'true'
    template: https://www.example.com/path/to/my-template.html

In app/config/config_prod.yml the default parameters may be overridden with production variants:

barbon_payment_paypoint_hosted:
    merchant: ABC123
    gateway_url: https://www.secpay.com/java-bin/ValCard
    remote_password: sup3rs3cr3tp455
    test_status: 'live'
    repeat: 'true'
    test_mpi_status: 'live'
    usage_type: E
    dups: 'true'
    template: https://www.example.com/path/to/my-template.html