Skip to content
delphifanforumPublic

About

Delphi sanal POS bileşeni (TDFTRBank) — 10.3–13, Nestpay ve Türk banka/ödeme kuruluşları

Resources

Stars

14 stars

Watchers

0 watching

Forks

Repository files navigation

DFTRBank

Virtual POS component library for Delphi
Delphi sanal POS bileşen kütüphanesi

Version Delphi License

Version 1.0.0
Author (Delphifan)
E-mail adsdelphi@gmail.com
Web www.delphifan.com

🇹🇷 Türkçe

Nedir?

DFTRBank, Delphi uygulamalarınızda sanal POS entegrasyonunu tek bir API ve Tool Palette bileşeni (TDFTRBank) ile yönetmenizi sağlar.

  • Nestpay / EST bankaları
  • Doğrudan banka API’leri
  • Ödeme kuruluşları (Iyzico, ParamPos, Moka, Sipay grubu, Payten, …)

Aynı kod yapısıyla satış, 3D Secure dönüşü, iptal ve iade işlemlerini çalıştırabilirsiniz.

Özellikler

  • Görsel bileşen: TDFTRBank (forma bırakın, Object Inspector’dan ayarlayın)
  • Ortak modeller: Sale, Sale3DResponse, Cancel, Refund, taksit sorguları
  • Banka kodu ile adaptör seçimi (BankCode)
  • Test / canlı ortam anahtarı (TestPlatform)
  • Delphi 10.3 · 10.4 · 11 · 12 · 13 paketleri
  • Otomatik kurulum scriptleri (Install_Dxxx.bat)

Hızlı kurulum

  1. Delphi’yi kapatın.
  2. Sürümünüze uygun scripti çalıştırın:
Delphi Script
10.3 Rio Install_D103.bat
10.4 Sydney Install_D104.bat
11 Alexandria Install_D11.bat
12 Athens Install_D12.bat
13 Florence Install_D13.bat

Menü: Install.bat
Kaldırma: Install_D103.bat /uninstall (diğer sürümler aynı şekilde)

  1. Delphi’yi açın → Tool Palette → DFTRBank → TDFTRBank

Hızlı kullanım

DFTRBank1.BankCode := BANK_ZiraatBankasi; // '0010'
DFTRBank1.MerchantID := 'CLIENT_ID';
DFTRBank1.MerchantUser := 'API_USER';
DFTRBank1.MerchantPassword := 'API_PASS';
DFTRBank1.MerchantStorekey := 'STORE_KEY';
DFTRBank1.TestPlatform := True;

Req := TDFTRSaleRequest.Create(True);
try
  Req.OrderNumber := 'ORD-2026-0001';
  Req.CustomerIPAddress := '127.0.0.1';
  Req.Payment3D.Confirm := True;
  Req.Payment3D.ReturnURL := 'https://siteniz.com/3d-return';

  Req.SaleInfo.CardNameSurname := 'TEST KART';
  Req.SaleInfo.CardNumber := '4111111111111111';
  Req.SaleInfo.CardExpiryDateMonth := 12;
  Req.SaleInfo.CardExpiryDateYear := 2030;
  Req.SaleInfo.CardCVV := '123';
  Req.SaleInfo.Amount := 10.00;
  Req.SaleInfo.Currency := curTRY;
  Req.SaleInfo.Installment := 1;

  // fatura / teslimat bilgilerini doldurun...

  Resp := DFTRBank1.Sale(Req);
  try
    // Resp.Statu, Resp.OrderNumber, Resp.TransactionId, Resp.Message
  finally
    Resp.Free;
  end;
finally
  Req.Free;
end;

Desteklenen POS

Nestpay / EST

Kod Banka
9046 Akbank Nestpay
0124 Alternatif Bank
0135 Anadolubank
0012 Halkbank
0099 ING
0064 İş Bankası
9111 Finansbank Nestpay
0059 Şekerbank
0032 TEB
0206 Türkiye Finans
0010 Ziraat
9001 Cardplus

Nestpay Auth: MerchantID = ClientId, MerchantUser = Name, MerchantPassword = Password, MerchantStorekey = 3D store key

Banka API’leri

Kod Banka
0046 Akbank (yeni API)
0134 Denizbank
0062 Garanti BBVA
0111 QNB Finansbank
0015 Vakıfbank
0067 Yapı Kredi
0205 Kuveyt Türk
0210 Vakıf Katılım

Ödeme kuruluşları

Kod POS
9004 Iyzico
9007 ParamPos
9002 Paratika
9003 Payten
9014 ZiraatPay
9015 VakifPayS
9005 Sipay
9006 QNBpay
9008 PayBull
9009 Parolapara
9010 IQmoney
9013 Vepara
9017 HalkÖde
9012 Moka
9011 Ahlpay
9016 Tami
9018 PayNKolay
9019 Paynet
0000 Stub (test)

İşlemler

Metod Açıklama
Sale Non-3D / 3D satış
Sale3DResponse 3D dönüş doğrulama
Cancel İptal
Refund İade
BINInstallmentQuery BIN taksit
AllInstallmentQuery Genel taksit

İptal/iade desteklenmez: Garanti, Yapı Kredi, Kuveyt Türk, Vakıf Katılım

Önemli notlar

  • Nestpay üye işyerinde storetype=3d aktif olmalıdır.
  • Akbank yeni API (0046) ile Nestpay (9046) farklıdır.
  • Kart verisi PCI kapsamındadır; üretimde loglamayın.
  • Canlıya geçmeden önce ilgili bankanın test ortamında doğrulayın.

🇬🇧 English

What is it?

DFTRBank is a Delphi virtual POS library with a single API and a Tool Palette component (TDFTRBank).

Integrate Nestpay/EST banks, native bank APIs, and payment institutions through one consistent interface for sale, 3-D Secure return, cancel, and refund flows.

Features

  • Drop-in VCL component: TDFTRBank
  • Shared request/response models
  • Bank selection via BankCode
  • Sandbox / production switch (TestPlatform)
  • Packages for Delphi 10.3 · 10.4 · 11 · 12 · 13
  • One-click install scripts

Quick install

  1. Close Delphi.
  2. Run the script for your IDE version (see table above).
  3. Reopen Delphi → Tool Palette → DFTRBank → TDFTRBank

Uninstall example: Install_D12.bat /uninstall

Quick usage

DFTRBank1.BankCode := BANK_ZiraatBankasi; // '0010'
DFTRBank1.MerchantID := 'CLIENT_ID';
DFTRBank1.MerchantUser := 'API_USER';
DFTRBank1.MerchantPassword := 'API_PASS';
DFTRBank1.MerchantStorekey := 'STORE_KEY';
DFTRBank1.TestPlatform := True;

Req := TDFTRSaleRequest.Create(True);
try
  Req.OrderNumber := 'ORD-2026-0001';
  Req.Payment3D.Confirm := True;
  Req.Payment3D.ReturnURL := 'https://yoursite.com/3d-return';
  // fill card + customer fields...

  Resp := DFTRBank1.Sale(Req);
  try
    // Resp.Statu, Resp.OrderNumber, Resp.TransactionId, Resp.Message
  finally
    Resp.Free;
  end;
finally
  Req.Free;
end;

Supported providers

See the Turkish tables above for the full bank/payment institution code list (Nestpay, bank APIs, and payment orgs).

Operations

Sale · Sale3DResponse · Cancel · Refund · installment queries

Cancel/refund not available for: Garanti, Yapı Kredi, Kuveyt Türk, Vakıf Katılım.

Notes

  • Nestpay merchants typically need storetype=3d.
  • Akbank native API (0046) ≠ Nestpay (9046).
  • Treat card data as PCI-sensitive — never log PANs/CVV in production.
  • Always validate in the provider’s test environment first.

Demo

Demo\DFTRBankDemo.dproj — bank selector, merchant fields, sale / 3-D sale sample.


License / Contact

© Alen Ibric — Delphifan
E-mail: adsdelphi@gmail.com
Web: www.delphifan.com


DFTRBank 1.0.0
Made with Delphi · by Delphifan

About

Delphi sanal POS bileşeni (TDFTRBank) — 10.3–13, Nestpay ve Türk banka/ödeme kuruluşları

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages