2017 © Pedro Peláez
 

symfony-bundle mpay24-bundle

Mpay24 wrapper bundle

image

netbull/mpay24-bundle

Mpay24 wrapper bundle

  • Tuesday, February 28, 2017
  • by netbull
  • Repository
  • 1 Watchers
  • 2 Stars
  • 553 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 16 % Grown

The README.md

Mpay24Bundle

This is Symfony bundle which works with mpay24.com payments., (*1)

Build Status
SensioLabsInsight, (*2)

Dependencies

Installation

Step 1: Download the bundle

Type the following command in the Terminal or add it manually to the composer.json, (*3)

$ composer require netbull/mpay24-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*4)

Step 2: Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*5)

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Netbull\Mpay24Bundle\NetbullMpay24Bundle(),
        );

        // ...
    }

    // ...
}

Step 3: Configure the Bundle

  1. Option 1, (*6)

    create a configuration file app/config/netbull_mpay24.yml folder and include it in app/config/config.yml yaml imports: ... - { resource: netbull_mpay24.yml }, (*7)

  2. Option 2, (*8)

    if you want to have separate configuration for the different environments like Prod and Dev, you need to create config file for each of the app/config/netbull_mpay24_prod.yml and app/config/netbull_mpay24_dev.yml and include them in the corresponding config files, (*9)

    app/config/config_prod.yml yaml imports: ... - { resource: netbull_mpay24_prod.yml }, (*10)

    app/config/config_dev.yml yaml imports: ... - { resource: netbull_mpay24_dev.yml }, (*11)

Usage

the registered service is netbull.provider.mpay24, (*12)

Using directly the SDK Api

in controller can be used with $this-get('netbull.provider.mpay24')->getInstance(), (*13)

Creating token for credit card payment

$paymentProvider = $this-get('netbull.provider.mpay24');
$tokenData = $paymentProvider->createToken()

The payment provider automatically tries to detect the current Locale from the request object if the language is not specified in the options, (*14)

Further reading

A short demo implementation guide is available at https://docs.mpay24.com/docs/get-started Documentation is available at https://docs.mpay24.com/docs., (*15)

The Versions

28/02 2017

dev-master

9999999-dev

Mpay24 wrapper bundle

  Sources   Download

MIT

The Requires

 

by Aleksandar Dimitrov

mpay24 symfony bundle

03/02 2017

v1.0.5

1.0.5.0

Mpay24 wrapper bundle

  Sources   Download

MIT

The Requires

 

by Aleksandar Dimitrov

mpay24 symfony bundle

03/02 2017

v1.0.4

1.0.4.0

Mpay24 wrapper bundle

  Sources   Download

MIT

The Requires

 

by Aleksandar Dimitrov

mpay24 symfony bundle

03/02 2017

v1.0.3

1.0.3.0

Mpay24 wrapper bundle

  Sources   Download

MIT

The Requires

 

by Aleksandar Dimitrov

mpay24 symfony bundle

03/02 2017

v1.0.2

1.0.2.0

Mpay24 wrapper bundle

  Sources   Download

MIT

The Requires

 

by Aleksandar Dimitrov

mpay24 symfony bundle

03/02 2017

v1.0.1

1.0.1.0

Mpay24 wrapper bundle

  Sources   Download

MIT

The Requires

 

by Aleksandar Dimitrov

mpay24 symfony bundle

03/02 2017

v1.0.0

1.0.0.0

Mpay24 wrapper bundle

  Sources   Download

MIT

The Requires

 

by Aleksandar Dimitrov

mpay24 symfony bundle