static void Main(string[] args) { BLZ = 76061482; Url = "hbci01.fiducia.de"; Port = 3000; HBCIVersion = 300; UserID = "xxxx"; HBCI.Assembly("libfintx", "1.0"); HBCI.Tracing(true); HBCI.Debugging(true); // create rdh-10 key file hbci.RDHKEY.Create(FilePath, Pwd, BLZ, UserID, Country, ProfileVersion); // hbci key hbci.RDHKEY.RDHKEYFILE = FilePath; hbci.RDHKEY.RDHKEYFILEPWD = Pwd; if (!HBCI.Synchronization_RDH(BLZ, Url, Port, HBCIVersion, UserID, FilePath, Pwd)) { Console.WriteLine(HBCI.Transaction_Output()); } Console.ReadLine(); }
public static void Test_PushTAN() { string receiver = string.Empty; string receiverIBAN = string.Empty; string receiverBIC = string.Empty; decimal amount = 0; string usage = string.Empty; bool anonymous = false; ConnectionDetails connectionDetails = _conn ?? new ConnectionDetails() { AccountHolder = "Torsten Klinger", Blz = 76050101, BIC = "SSKNDE77XXX", IBAN = "xxx", Url = "https://banking-by1.s-fints-pt-by.de/fints30", HBCIVersion = 300, UserId = "xxx", Pin = "xxx" }; receiver = "Klinger"; receiverIBAN = "xxx"; receiverBIC = "GENODEF1HSB"; amount = 1.0m; usage = "TEST"; HBCI.Assembly("libfintx", "1"); HBCI.Tracing(true); if (HBCI.Synchronization(connectionDetails).IsSuccess) { Segment.HIRMS = "921"; // -> pushTAN var tanmediumname = libfintx.Main.RequestTANMediumName(connectionDetails); Segment.HITAB = tanmediumname.Data; System.Threading.Thread.Sleep(5000); Console.WriteLine(HBCI.Transfer(connectionDetails, receiver, receiverIBAN, receiverBIC, amount, usage, Segment.HIRMS, null, anonymous)); Console.WriteLine(Segment.HITANS); } var timer = new System.Threading.Timer( e => HBCI.Transaction_Output(), null, TimeSpan.Zero, TimeSpan.FromSeconds(10)); Console.ReadLine(); }
static void Output() { Console.WriteLine(HBCI.Transaction_Output()); }
void Output() { output.WriteLine(HBCI.Transaction_Output()); }