Virtual POS component library for Delphi
Delphi sanal POS bileşen kütüphanesi
| Version | 1.0.0 |
| Author | (Delphifan) |
| adsdelphi@gmail.com | |
| Web | www.delphifan.com |
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.
- 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)
- Delphi’yi kapatın.
- 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)
- Delphi’yi açın → Tool Palette → DFTRBank → TDFTRBank
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;| 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
| 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 |
| 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) |
| 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
- Nestpay üye işyerinde
storetype=3daktif 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.
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.
- 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
- Close Delphi.
- Run the script for your IDE version (see table above).
- Reopen Delphi → Tool Palette → DFTRBank → TDFTRBank
Uninstall example: Install_D12.bat /uninstall
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;See the Turkish tables above for the full bank/payment institution code list (Nestpay, bank APIs, and payment orgs).
Sale · Sale3DResponse · Cancel · Refund · installment queries
Cancel/refund not available for: Garanti, Yapı Kredi, Kuveyt Türk, Vakıf Katılım.
- 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\DFTRBankDemo.dproj — bank selector, merchant fields, sale / 3-D sale sample.
© Alen Ibric — Delphifan
E-mail: adsdelphi@gmail.com
Web: www.delphifan.com
DFTRBank 1.0.0
Made with Delphi · by Delphifan