Skip to content
No description or website provided.
PHP
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
DependencyInjection
Entity
Form/Type
Resources/config
AizattoNBePayBundle.php
README.md

README.md

README

This library provides a way to interact with the NBePay Payment Gateway.

It provides:

  • A service to easily generate the NBePay Payment Page URL
  • A Doctrine Entity (NBePaymentTransaction) to log each transaction

Service

$url = $this->container->get('nbepay')->generateURL(array(
  'amount' => 1.00,
  'orderid' => 1,
  'bill_name' => 'John Doe',
  'bill_email' => 'example@example.com'
  'bill_desc' => 'Description',
  'country' => 'MY',
  'cur' => 'myr',
  'returnurl' => 'http://www.example.com',
));

Installation

Install source code

You have two options to install the source code.

  • deps file
  • git submodules

Install via deps

Add into your deps file

[AizattoNBePayBundle]
    git=http://github.com/aizatto/AizattoNBePayBundle.git
    target=/bundles/Aizatto/Bundle/NBePayBundle

Execute vendor update script:

php bin/vendors update

Install via git submodules

Execute git submodule add command:

git submodule add \
  http://github.com/aizatto/AizattoNBePayBundle.git \
  vendor/bundles/Aizatto/Bundle/NBePayBundle

Install into AppKernel

Add "Aizatto\Bundle\NBePayBundle\NBePayBundle()" to the list of bundles.

public function registerBundles()
{
    $bundles = array(
        new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
        ...
        new Aizatto\Bundle\NBePayBundle\NBePayBundle();
    );

Install into autoload

Edit app/autoload.php, and add the register the namespace "Aizatto":

$loader->registerNamespaces(array(
  'Aizatto' => __DIR__.'/../vendor/bundles',
))
Something went wrong with that request. Please try again.