emresari89/nestpay

Emsa payment processing library for PHP

v1.0.3 2022-06-11 15:35 UTC

This package is auto-updated.

Last update: 2024-05-15 12:10:25 UTC


README

Nestpay (EST)

Nestpay (A Bank, Ak Bank, Anadolu Bank, Finans Bank, Halk Bank, ING Bank, İş Bank, Şeker Bank, Türk Ekonomi Bank (TEB), Ziraat Bank) gateway for Emsa payment processing library

68747470733a2f2f7472617669732d63692e636f6d2f656d72657361726938392f6e6573747061792d7068702e7376673f6272616e63683d6d6173746572

Installation | Supported Methods | Basic Usages


Installation

$ composer require emresari89/nestpay-php

Supported methods

  • purchase
  • authorize
  • complete
  • refund
  • cancel

Basic Usages

use Emsa\Common\CreditCard;
use Emsa\Nestpay\Token;
use Emsa\Nestpay\Currency;
use Emsa\Nestpay\Model\Purchase;
use Emsa\Akbank;

$token = new Token('CLIENT_ID', 'USERNAME', 'PASS');
$creditCard = new CreditCard('4355084355084358', '26', '12', '000');
$purchase = new Purchase();
$purchase->setAmount(1);
$purchase->setInstallment(1);
$purchase->setCurrency(Currency::TRY);
$purchase->setCreditCard($creditCard);
$purchase->setTestMode(true);
$response = (AkBank($token))->purchase($purchase);
if($response->isSuccessful()){
    // success!
}

Change log

Please see UPGRADE for more information on how to upgrade to the latest version.

Support

If you are having general issues with Emsa, we suggest posting on Stack Overflow. Be sure to add the

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.

Security

If you discover any security related issues, please email emresarioglu89@gmail.com instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.