SP30 MULTILANE PINPAD

Post Reply
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

SP30 MULTILANE PINPAD

Post by mosh1 »

Hi!
I am trying to integrate your SP30 MULTILANE PINPAD in my POS system.
Where can I found information ?

I have following info on the device

DeviceName, PAX_SP30

DeviceIP, 24.89.178.75

DevicePort, 10009

I can get the Ip adress to

So the question is how to communicate with the device?
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: SP30 MULTILANE PINPAD

Post by mosh1 »

May be I am not clear. Question is how to communicate with TCP/IP device?
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: SP30 MULTILANE PINPAD

Post by Antonio Linares »

Mosh,

You could use sockets. Not sure if there is a specific library (built on top of sockets) that may simplify it.

For sockets use please review samples\sockcli.prg and sockserv.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: SP30 MULTILANE PINPAD

Post by mosh1 »

They do have SDK. Now they send me a sample in VB :

Their sample goes like this :

Code: Select all

Sub test()
    Dim MyRequest As PaymentAppCOM.TransactionRequest
    Set MyRequest = New TransactionRequest
    MyRequest.Device_Set_2 "PAX_SP30", "192.168.0.155", "10009"
    MyRequest.xKey = "xTest_My_Grocery"
    MyRequest.xVersion = "4.5.3"
    MyRequest.xSoftwareName = "My_Grocery"
    MyRequest.xSoftwareVersion = "1.0"
    MyRequest.xCommand = "cc:sale"
    MyRequest.xAmount = 1.23
    Dim MyResponse As TransactionResponse
    Set MyResponse = MyRequest.Manual(False, False, True, True, False, False, False, True, Nothing)
    MsgBox MyResponse.xResult
End Sub
 
I get suggestion to use hb_LibLoad and hb_DynCall but I have no idea how to set all the variables.
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: SP30 MULTILANE PINPAD

Post by mosh1 »

Is it possible?
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: SP30 MULTILANE PINPAD

Post by mosh1 »

I get from them C code but it doesnt compile

Code: Select all

PaymentAppCOM::TransactionRequest *MyRequest = nullptr;

MyRequest = new TransactionRequest();

MyRequest->Device_Set_2 L"PAX_SP30", L"192.168.0.139", L"10009";

MyRequest->xKey = L"xTest_My_Grocer";

MyRequest->xVersion = L"4.5.3";

MyRequest->xSoftwareName = L"My_Grocer";

MyRequest->xSoftwareVersion = L"1.0";

MyRequest->xCommand = L"cc:sale";

MyRequest->xAmount = 1.23;

PaymentAppCOM::TransactionResponse *MyResponse = nullptr;

MyResponse = MyRequest->Manual(false, false, true, true, false, false, false, true, nullptr);

MsgBox MyResponse->xResult;

 
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: SP30 MULTILANE PINPAD

Post by mosh1 »

Please help!
User avatar
thefull
Posts: 720
Joined: Fri Oct 07, 2005 7:42 am
Location: Barcelona
Contact:

Re: SP30 MULTILANE PINPAD

Post by thefull »

Hi
Please, view this post , http://forums.fivetechsupport.com/viewt ... ap#p167832
You can see how to convert source code VB6 , script, for use in Harbour, using SOAP.

Regards
Saludos
Rafa Carmona ( rafa.thefullARROBAgmail.com___quitalineas__)
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: SP30 MULTILANE PINPAD

Post by mosh1 »

thefull wrote:Hi
Please, view this post , http://forums.fivetechsupport.com/viewt ... ap#p167832
You can see how to convert source code VB6 , script, for use in Harbour, using SOAP.

Regards
Yo no hablo español, lo siento :D
User avatar
thefull
Posts: 720
Joined: Fri Oct 07, 2005 7:42 am
Location: Barcelona
Contact:

Re: SP30 MULTILANE PINPAD

Post by thefull »

Oh My God!! Please, VIEW SOURCE CODE!! Language : HARBOUR
Note: Google Translator es tu amigo... ;-) y yo no domino inglés, solo si es pequeño y bajito
Saludos
Rafa Carmona ( rafa.thefullARROBAgmail.com___quitalineas__)
Post Reply