Download the PHP package okyayaykut/omnipay-gvp without Composer

On this page you can find all versions of the php package okyayaykut/omnipay-gvp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package omnipay-gvp

Omnipay: Gvp

Gvp (Garanti, Denizbank, TEB, ING, Şekerbank, TFKB sanal pos) gateway for Omnipay payment processing library

Latest Stable Version Total Downloads Latest Unstable Version License

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Gvp (Turkish Payment Gateways) support for Omnipay.

Gvp (Garanti, Denizbank, TEB, ING, Şekerbank, TFKB) sanal pos hizmeti için omnipay kütüphanesi.

Installation

composer require okyayaykut/omnipay-gvp

Basic Usage

The following gateways are provided by this package:

Gateway Methods

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

Unit Tests

PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.

Sample App

    <?php defined('BASEPATH') OR exit('No direct script access allowed');

    use Omnipay\Omnipay;

    class GvpTest extends CI_Controller {

        public function index() {
            $gateway = Omnipay::create('Gvp');

            $gateway->setMerchantId("7000679");
            $gateway->setTerminalId("30691297");

            $gateway->setUserName("PROVAUT");
            $gateway->setPassword("123qweASD");

            $gateway->setRefundUserName("PROVRFN");
            $gateway->setRefundPassword("123qweASD");

            $gateway->setTestMode(TRUE);

            $options = [
                'number'        => '4824894728063019',
                'expiryMonth'   => '06',
                'expiryYear'    => '2017',
                'cvv'           => '959'
            ];

            $response = $gateway->purchase(
            [
                //'installment'  => '2', # Taksit
                //'multiplepoint' => 1, // Set money points (Maxi puan gir)
                //'extrapoint'   => 150, // Set money points (Maxi puan gir)
                'amount'        => 100.00,
                'orderid'       => '',
                'card'          => $options
            ]
            )->send();

            $response = $gateway->authorize(
            [
                'orderid'       => 'asd2',
                'transactionId' => '111111111111',
                'amount'        => 10.00,
                'card'          => $options
            ]
            )->send();
    //
            $response = $gateway->capture(
            [
                'transactionId' => '111111111111',
                'amount'        => 1.00,
                'currency'      => 'TRY',
                'card'          => $options
            ]
            )->send();

            $response = $gateway->refund(
            [
                'transactionId' => '111111111111',
                'amount'        => 1.00,
                'currency'      => 'TRY',
                'card'          => $options
            ]
            )->send();

            $response = $gateway->void(
            [
                'transactionId' => '111111111111',
                'authcode'      => '123123',
                'amount'        => 1.00,
                'currency'      => 'TRY',
                'card'          => $options
            ]
            )->send();

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

            // Debug
            //var_dump($response);

        }

    }

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.


All versions of omnipay-gvp with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6|^7
omnipay/common Version ~3.0
ext-simplexml Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package okyayaykut/omnipay-gvp contains the following files

Loading the files please wait ....