Code Monkey home page Code Monkey logo

nestpay's Introduction

Payconn: 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 Payconn payment processing library


Installation | Supported Methods | Basic Usages



Payconn is a framework agnostic, multi-gateway payment processing library for PHP. This package implements common classes required by Payconn.

Installation

$ composer require payconn/nestpay

Supported methods

  • purchase
  • authorize
  • complete
  • refund
  • cancel

Basic Usages

use Payconn\Common\CreditCard;
use Payconn\Nestpay\Token;
use Payconn\Nestpay\Currency;
use Payconn\Nestpay\Model\Purchase;
use Payconn\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 Payconn, 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 [email protected] instead of using the issue tracker.

License

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

nestpay's People

Contributors

ahmett avatar muratsac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nestpay's Issues

add lang en

Hi
The default language is Turkish. I want to change the language to English. Please help me

Call to a member function format() on string

This error points line 32 at src/Nestpay/Request/PurchaseRequest.php

$body->addChild('Expires', $model->getCreditCard()->getExpireMonth()->format('m').'/'.$model->getCreditCard()->getExpireYear()->format('y'));

Ziraat Authorize sorunu

Merhaba,
Çalışmanız için teşekkürler. Ziraatbankası için Authorize işlemi yapmak istediğimde "Bir hata olustu devam etmek icin tiklayiniz" yazısı ile karşılaşmaktayım. 3d_PAY_HOSTİNG kullanıldığı için bu yöntemi kullanmak durumundayım. Purchase yöntemini kullandğımda API ile iletişim sağlayabiliyorum ama işlem başarısız oluyor 3D PAY HOSTİNG sebebi ile. Sizce sorun nerede olabilir?

İyi çalışmalar dilerim.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.