Skip to content

Jeton pay driver for the Omnipay payment processing library

License

Notifications You must be signed in to change notification settings

eozden/omnipay-jetonpay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Omnipay: Jeton Pay (BETA)

Jeton Pay gateway for Omnipay payment processing library

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Jeton Pay (www.jeton.com) support for Omnipay.

Installation

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

{
    "require": {
        "eozden/omnipay-jetonpay": "~1.0"
    }
}

And run composer to update your dependencies:

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

Basic Usage

use Omnipay\Omnipay;

$gateway = Omnipay::create('Jeton');

$params = [
    'apiKey' => '',
    'transactionReference' => 10,
    'amount' => 10.00,
    'currency' => 'USD'
];

$response = $gateway->purchase($params)->send();

if ($response->isSuccessful()) {
    echo $response->getTransactionReference();
    echo $response->getMessage();
} else {
    echo $response->getMessage();
}

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

Jeton pay driver for the Omnipay payment processing library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages