Code Monkey home page Code Monkey logo

nestpay.net's Introduction

Nestpay.NET

Nestpay (EST) (Asseco) POS API with .NET

Installation

dotnet add package Nestpay --version 1.5.1

Satış

namespace Nestpay {
    internal class Program {
        static void Main(string[] args) {
            var nestpay = new Nestpay(MODE.Test, BANK.Asseco); // Çalışma ortamı ve Banka adı
            nestpay.SetClientId("100100000"); // İşyeri numarası
            nestpay.SetUsername("AKTESTAPI"); // Kullanıcı adı
            nestpay.SetPassword("AKBANK01"); // Kullanıcı şifresi
            var request = new Nestpay.CC5Request();
            request.SetCardNumber("4355084355084358"); // Kart numarası
            request.SetCardExpiry("12", "30"); // Son kullanma tarihi - AA,YY
            request.SetCardCode("000"); // Kart arkasındaki 3 haneli numara
            request.SetAmount("1.00", "TRY"); // Satış tutarı ve para birimi
            request.SetInstallment(""); // Taksit sayısı (varsa)
            request.SetIPv4("1.2.3.4"); // Müşteri IP adresi
            var response = nestpay.Auth(request);
            if (response != null) {
                Console.WriteLine(Nestpay.Json<Nestpay.CC5Response>(response));
            }
        }
    }
}

İade

namespace Nestpay {
    internal class Program {
        static void Main(string[] args) {
            var nestpay = new Nestpay(MODE.Test, BANK.Asseco); // Çalışma ortamı ve Banka adı
            nestpay.SetClientId("100100000"); // İşyeri numarası
            nestpay.SetUsername("AKTESTAPI"); // Kullanıcı adı
            nestpay.SetPassword("AKBANK01"); // Kullanıcı şifresi
            var request = new Nestpay.CC5Request();
            request.SetAmount("1.00", "TRY"); // İade tutarı ve para birimi
            request.SetOrderId("ORDER-"); // Sipariş numarası
            var response = nestpay.Refund(request);
            if (response != null) {
                Console.WriteLine(Nestpay.Json<Nestpay.CC5Response>(response));
            }
        }
    }
}

İptal

namespace Nestpay {
    internal class Program {
        static void Main(string[] args) {
            var nestpay = new Nestpay(MODE.Test, BANK.Asseco); // Çalışma ortamı ve Banka adı
            nestpay.SetClientId("100100000"); // İşyeri numarası
            nestpay.SetUsername("AKTESTAPI"); // Kullanıcı adı
            nestpay.SetPassword("AKBANK01"); // Kullanıcı şifresi
            var request = new Nestpay.CC5Request();
            request.SetOrderId("ORDER-"); // Sipariş numarası
            var response = nestpay.Cancel(request);
            if (response != null) {
                Console.WriteLine(Nestpay.Json<Nestpay.CC5Response>(response));
            }
        }
    }
}

nestpay.net's People

Contributors

ozgur-yalcin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

birbosluk

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.