简体   繁体   English

如何确定MSR是否已完成使用C#从信用卡读取数据的操作?

[英]How can I determine if the MSR is finished reading the data from the Credit Card using C#?

I have a specific textbox where when I swiped the credit card from MSR the value of the will be in there. 我有一个特定的文本框,当我从MSR刷信用卡时,的值就在其中。

What I want exactly to happen is that I want to trigger a specific function after the card is swiped without using any buttons,etc I want to happen it automatically. 我想确切发生的是,我想在刷卡后不使用任何按钮等情况下触发特定功能,等等,我想自动发生。 And prompt the result of the function. 并提示函数结果。

Is this possible? 这可能吗?

Any advice or guide will be a big help? 有什么建议或指南会有很大帮助吗?

Credit card numbers are 12-19 characters in length. 信用卡号的长度为12-19个字符。 The first six digits identify the issuer. 前六位数字标识发行人。 See http://en.wikipedia.org/wiki/Bank_card_number for more details. 有关更多详细信息,请参见http://en.wikipedia.org/wiki/Bank_card_number

You could create a method that listens to TextBox.TextChanged and when the text length is at least 6 digits, get the issuer and then if the required length is reached then call your credit card processing number. 您可以创建一个侦听TextBox.TextChanged的方法,并且当文本长度至少为6位数字时,请获取发行者,然后如果达到所需的长度,请致电您的信用卡处理号码。

Also, some MSR can be programmed to send an end of text (ETX) character. 同样,可以将某些MSR编程为发送文本结尾(ETX)字符。

Hope it helps. 希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM