Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Payment method

Status
Not open for further replies.

RitwickGupta

Programmer
Aug 21, 2014
96
CA
Hi,

I am making a program which allows you to open a new screen for payment when my payment option is clicked on tender screen. This interface for payment will be opened by a DLL function which will be called by my ISL code and I was hoping to return back values like Status and Payment_reference_code to ISL function to tell if the payment was a pass of a fail. After that I will close the current Check if the payment was a Pass.

What I want to know is do I need to use TxMsg for my method? I am unclear about when to use TxMsg and How do I send that TxMsg to my third party system.

Also, how do I close a Check on POS through ISL code?

Thanks
 
So I am using a TCP server program to simulate the PMS. I can send all the data needed using TxMsg command, but I don't know what to send back from the PMS to my ISL code in SIM. My code looks like


Code:
var ref             		 : A32 \ 


event inq : 1 //Use Inquiry key #1 to get order info.

//Doing menu stuff here

TxMsg "Pay", @ttldue, @Cknum, menuItemCount, menuItemName[], menuItemCount, menuItemTtl[], menuItemCount, menuItemQty[]

waitforrxmsg "Communicating with Payments..."

LoadKybdMacro key(9, 199)

loadkybdmacro makekeys(total),@key_enter
loadkybdmacro makekeys(ref),@key_enter

endevent


event tmed : 199
window 7, 50, "Payment Info"
display 1,2, "Total: ", total
display 2,2, "Reference Code: ", ref
waitforenter
endevent

event rxmsg : *
rxmsg ref   
endevent


I want to send back a "Yes" or a "No" back to rxmsg. What should be the msg which is being sent back to SIM from the TCP server?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top