Skip to content

RazmikSaghoyan/omnipay-bizmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Omnipay: Bussines mail.ru Getway

Bussines mail.ru gateway for Omnipay payment processing library

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.5+. This package implements Bizmail support for Omnipay.

Installation

Omnipay is installed via Composer. To install, simply add it to your composer.json file:

{
    "require": {
        "razmiksaghoyan/omnipay-bizmail": "dev-master"
    }
}

And run composer to update your dependencies:

composer update

Or you can simply run

composer require razmiksaghoyan/omnipay-bizmail

Basic Usage

  1. Use Omnipay gateway class:
    use Omnipay\Omnipay;
  1. Initialize Bizmail gateway and make a purchase:
    $gateway = Omnipay::create('Bizmail');
    $gateway->setType(env('type'));
    $gateway->setKind(env('kind'));
    $gateway->setAmount(10); // Amount to charge
    $gateway->setCurrency('RUB'); // Currency
    $gateway->setBizProjectId('Your biz Project Id'));
    $purchase = $gateway->purchase()->send();
    
    if ($purchase->isSuccessful()) {
        // Do your logic
    } else {
        throw new Exception($purchase->getMessage());
    }
    

For general usage instructions, please see the main Omnipay repository.

Support

If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to.

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.

About

Omnipay: Bussines mail.ru Getway

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages