Sunday, August 27, 2017

Verifone automate signing for development

Developer face 2 main issue with verifone development.
1. No simulator like ingenico and pax.
2. Signing and download process.

For simulator I haven't found any concrete solution.
But for signing and download I have automated signing process using vbs.
Below is vbs script for your reference.

Vfn_App_Sign.vbs

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.Run """C:\Program Files\VERIFONE\FST\FST.exe""", 9

WScript.Sleep 5000

WshShell.SendKeys "user id1"

WshShell.SendKeys "{TAB}"

WshShell.SendKeys "user password1"

WshShell.SendKeys "{TAB}"

WshShell.SendKeys "^{ }"

WshShell.SendKeys "user id2"

WshShell.SendKeys "{TAB}"

WshShell.SendKeys "user password2"

WshShell.SendKeys "{TAB}"

WshShell.SendKeys "{TAB}"

WshShell.SendKeys "{ENTER}"

WScript.Sleep 5000

WshShell.SendKeys "{ENTER}"

WScript.Sleep 5000

WshShell.SendKeys "{ENTER}"

WshShell.SendKeys "{DOWN}"

WshShell.SendKeys "{TAB}"

WshShell.SendKeys "^{ }"

WshShell.SendKeys "{ENTER}"

WScript.Sleep 5000

WshShell.SendKeys "{TAB}"

WshShell.SendKeys "{TAB}"

WshShell.SendKeys "{TAB}"

WshShell.SendKeys "{ENTER}"

WScript.Sleep 5000

WshShell.SendKeys "card password1"

WshShell.SendKeys "{ENTER}"

WshShell.SendKeys "card password2"

WshShell.SendKeys "{ENTER}"

WScript.Sleep 10000

WshShell.SendKeys "{ENTER}"

WScript.Sleep 2000

WshShell.SendKeys "{TAB}"

WshShell.SendKeys "{ENTER}"

WScript.Sleep 2000

WshShell.Run "dnld.bat"