Jump to content

Auto-executing a send after credit card swipe?


This topic is 5651 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have two scripts, "Swipe" and "Process.

1.) Swipe - Simply navigates to a credit card swipe field. When the user swipes the card it parses the data into the appropriate fields.

2.) Process - Send the swiped data to the credit card company and returns the results.

I want to execute both tasks in one button click. I would like the script to prompt for user to scan card...and then automatically go to step two after they swipe it. It takes 3-5 seconds for the magnetic reader to send the data and another second to parse it but I would prefer to not force the user to scan the card within a certain number of seconds,

I am looking for a solution that does not require a plug-in.

Is this possible?

Link to comment
Share on other sites

..It would be hard to accomplish. I've got no clue about this to be honest, but i'm guessing a good place to start would be with what the swiper sends the computer ... besides the code when a card is swiped.

Link to comment
Share on other sites

I've done something like this with a card reader and/or barcode reader. The input device can be set to add a carriage return, which can be set to exit the field. This field exit can trigger an auto-enter calculation.

If you actually want a script to occur at that point without pressing a button or a key, you will need a plugin. But there are free ones like EventScript that will do the trick.

I set up something like this for checking out barcoded laptops to students with ID cards with magnetic strips. There are no buttons and only one field on the layout, just scan and swipe....

Link to comment
Share on other sites

The input device can be set to add a carriage return, which can be set to exit the field.

How do I tell FM8 to do this?

I defined the field to go to the next field upon a carriage return but this does not work.

I tried adding one, two, and three carriage returns to the mag reader swipe but it simply adds the carriage returns to the text string that is being dumped into the field.

Link to comment
Share on other sites

And why don't you want to use a plugin? - It would make your whole life a looottt easier... Unless it's web based. As reed mentioned there is a free plug-in called eventscript.

Link to comment
Share on other sites

Right Click your field, Choose Field Control --> Behaviour. Then select goto next object using return and enter keys.

~Genx

Sorry if I was not clear in my last post but what you are suggesting is exactly what I have done.

Regardless of how the field's behavior is set the mag reader just dumps the data into the targeted text field. The extra carriage returns that I have added to the magnetic swipe dump do not trigger it to exit the field.

Link to comment
Share on other sites

And why don't you want to use a plugin? - It would make your whole life a looottt easier... Unless it's web based. As reed mentioned there is a free plug-in called eventscript.

I am okay with using a plug-in to solve this and EventScript is what I am currently trying. The problem is that I can not trigger it because the card swipe dump won't automatically exit the field.

Link to comment
Share on other sites

Can't you auto-enter a false value then simply trigger on change? That's an actual question for all i recommend using it i'm only just starting to use it myself now.

Anyway i'm not sure you're sending the correct character, it has to be CRLF (pilcrow) do a search on google for the char code.

Link to comment
Share on other sites

Your sure you are sending the CRLF character?

I am not sure what "CRLF" means but with the exception the actual credit card number this is exactly what is being dumped from the card reader:

CC_Swipe.gif

Link to comment
Share on other sites

This topic is 5651 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.