Forums / All Other Contributions/Addons / Zen Cart -2- PayPal Virtual Terminal

Zen Cart -2- PayPal Virtual Terminal

Locked

Views: 2,208

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
27 Jan 2007, 8:47 PM
#1
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Zen Cart -2- PayPal Virtual Terminal

I have created a Visual Basic 2005 program to read a modified order page then pass it to PayPal's Virtual Terminal. It is a very rough program with a lousy interface. It also requires .NET2 on the computer running the program. This was a proof of concept for me, but if someone wants a copy of it, PM me.

My goal is to use VBSCRIPT to open two browsers and transfer data from one to the other by reading and setting element values. The script works fine to open up the browsers but I can find enough examples / help on how to read elements from one browser to another.

I am requesting HELP.

28 Jan 2007, 3:42 AM
#2
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: Zen Cart -2- PayPal Virtual Terminal

:onfire: I am excited!
My goal is to extract customer order information from an administrate page in the store and send it to the PayPal Virtual Terminal. This will reduce errors from
manual copying of data.

This code is only a proof of concept and does not transfer data to the PayPal Virtual Terminal (yet).
But I am getting closer to having a ZEN2PAY script.

The following script can be pasted into a text file and saved as something.vbs
Then double click on the file to launch 2 mini browsers and cross copy data.

'Start of vbscript
Set oIE_1 = WScript.CreateObject("InternetExplorer.Application")
'Set browser number 1 window properties.
oIE_1.left = 50
oIE_1.top = 50
oIE_1.height = 275
oIE_1.width = 360
oIE_1.menubar = 0
oIE_1.toolbar = 0
oIE_1.statusbar = 0
oIE_1.navigate("about:blank")
Do While oIE_1.Busy : Loop
Set oDoc_1 = oIE_1.Document
oDoc_1.writeln("<HTML><HEAD><TITLE>TITLE TEST 1</TITLE></HEAD>")
oDoc_1.writeln("<BODY><B>TEST 1</B>")
oDoc_1.writeln("<FORM NAME='TESTFORM1'>")
oDoc_1.writeln("<INPUT TYPE='TEXT' NAME='TEXT1'>")
oDoc_1.writeln("<INPUT TYPE='TEXT' NAME='TEXT2'>")
oDoc_1.writeln("</FORM></BODY></HTML>")
oIE_1.visible = 1

Set oIE_2 = WScript.CreateObject("InternetExplorer.Application")
'Set browser number 2 window properties.
oIE_2.left = 450
oIE_2.top = 50
oIE_2.height = 275
oIE_2.width = 360
oIE_2.menubar = 0
oIE_2.toolbar = 0
oIE_2.statusbar = 0
oIE_2.navigate("about:blank")
Do While oIE_2.Busy : Loop
Set oDoc_2 = oIE_2.Document
oDoc_2.writeln("<HTML><HEAD><TITLE>TITLE TEST 2</TITLE></HEAD>")
oDoc_2.writeln("<BODY><B>TEST 2</B>")
oDoc_2.writeln("<FORM NAME='TESTFORM2'>")
oDoc_2.writeln("<INPUT TYPE='TEXT' NAME='TEXT1'>")
oDoc_2.writeln("<INPUT TYPE='TEXT' NAME='TEXT2'>")
oDoc_2.writeln("</FORM></BODY></HTML>")
oIE_2.visible = 1

'Cross read and write from each browser
oDoc_1.testform1.text1.value = "TEST 1 TEXT"
oDoc_2.testform2.text1.value = "TEST 2 TEXT"
oDoc_1.testform1.text2.value = oDoc_2.testform2.text1.value
oDoc_2.testform2.text2.value = oDoc_1.testform1.text1.value

'End of vbscript

29 Jan 2007, 3:06 AM
#3
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Zen Cart -2- PayPal Virtual Terminal

By having to use the .NET mean that you need to have the store installed on a windows server?

thank you,

betty

29 Jan 2007, 3:10 AM
#4
stagebrace avatar

stagebrace

Totally Zenned

Join Date:
Jan 2005
Location:
Tennessee
Posts:
985
Plugin Contributions:
0

Re: Zen Cart -2- PayPal Virtual Terminal

No, It would be installed on your PC during the Visual Basic 2005 Express Edition installation. I can give you the code, you make your property adjustments and compile it your self.

29 Jan 2007, 3:39 AM
#5
bettysue avatar

bettysue

Inactive

Join Date:
May 2004
Posts:
747
Plugin Contributions:
0

Re: Zen Cart -2- PayPal Virtual Terminal

stagebrace:

No, It would be installed on your PC during the Visual Basic 2005 Express Edition installation. I can give you the code, you make your property adjustments and compile it your self.

:shocking: thank you, I think I'll send my fiance to the thread as he knows how to translate tech stuff into my native language: blonde :wacko:

thank you again,

betty