Portalum / Portalum.Zvt

A .NET Zvt Library for Payment Terminals (C#)
MIT License
88 stars 36 forks source link

Tip #36

Open tueddy opened 1 year ago

tueddy commented 1 year ago

NuGet Package Version

No response

Payment service provider

Concardis

Payment terminal

CCV base next

Communication Logs

No response

More information

Hi,

first thank's for this great library! I've managed to get it to work in a few minutes (MakePayment)..

Now i want to make a payment with TIP with this command:

grafik

This is my code:

                if (betrag == null) throw new Exception("Please enter a tip amount.");
                b = ConvertEuroCent((int)betrag);
                var controlFields = new byte[] { 0x06, 0x0C }; 
                var package = new List<byte>();
                package.Add(0x04); // Amount prefix
                package.AddRange(NumberHelper.DecimalToBcd(b)); 
                package.Add(0x87); // ReceiptNumber prefix
                package.AddRange(NumberHelper.IntToBcd((int)belegnummer, 2));
                res = await zvtClient.CustomCommandAsync(controlFields, package.ToArray());

But i get an error "system error (= other/unknown error), See TLV tags 1F16 and 1F17"

Any idea what i'm doing wrong?

tinohager commented 1 year ago

so in a hurry not really I would have to check first myself

tueddy commented 1 year ago

It could be that the tip function is not yet activated in my terminal account. When this has been clarified, I will report back here..

ot-repo commented 2 months ago

Hi @tueddy , I need to implement the tip functionality, as well. What's wrong with the code you have posted? Is it only missing tip functionality in your terminal?

Thank you.

ot-repo commented 2 months ago

Hi @tinohager, do you have any plan to add the tip functionality?

thank you.

tinohager commented 2 months ago

@ot-repo I maintain and expand the library only on order from Portalum you would have to ask there directly.

ot-repo commented 2 months ago

Oh I see, thank you anyway!