stripe.js magenetic card reader php

北慕城南 提交于 2020-02-22 07:28:04

问题


Have a web php web app for POS. Looking to see if its possible to integrate the stripe.js in order to take the details from the card and process in the transaction.

Card reader is audio jack like the ones you see from Square or Cardflight but I want to run this over the web rather than build an iOS / Android app for it.

Is it possible for the magnetic card reader to input the info it a form if the fields are in focus?

Or to do something more behind the scenes. I know being a web app this may not be possible but need to now for sure.

Any ideas?

----Edit----

I would prefer not to put the details into a webform if possible that was just the simplest solution I thought. Would it be possible to do this with the stripe.js and the card reader? Trying to get away from having to build a custom iOS / Android app.


回答1:


I doubt you will be able to input into a web form via an audio-based card reader. Your best bet would be to investigate readers which produce keyboard input as their output, similar to how most barcode reaaders work. With one of those, you could use a standard input box and then process the input into whatever format you need.



来源:https://stackoverflow.com/questions/21476685/stripe-js-magenetic-card-reader-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!