Pay Flow Pro SDK test file (JAVA)
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 42622
interpreted = N
texte = **Warning: Involved Java and PayFlowPro question ahead** :-)Hi, I'm still having a heck of a time getting the PFP SDK working.This post is a bit envolved but I hoping some knowing person will takethetime to help out.This is for use with the pure java download version. This should be thesametest file for pretty much any of them.I am using the test file (below) and I have set (I think) all myspecific perams.-----------start test file-------------------// Verisign, Inc.// http://www.verisign.com// See contact.txt for additional contact information// Verisign Payflow Pro Java Clientimport com.Verisign.payment.PFProAPI;class PFProJava { // Set defaults static String HostAddress = test-payflow.verisign.com; static Integer HostPort = Integer.decode(443); static String ParmList =TRXTYPE=A&TENDER=C&PARTNER=wfb&VENDOR=vrn481200420&USER=ouruser&PWD=ourpass&ACCT=4111111111111111&EXPDATE=0804&AMT=1.00; static Integer Timeout = Integer.decode(80); static String ProxyAddress = ; static Integer ProxyPort = Integer.decode(0); static String ProxyLogon = ; static String ProxyPassword = ; // Help system static void help() { System.out.println( Usage Error: \n ); System.out.println(pfpro
); System.out.println( host name'test-payflow.verisign.com'); System.out.println( host port number'443'); System.out.println( parameter list'ccNum=5105105105105105100&ccExpDate=1205&amount=1.23'); System.out.println( timeout(sec) - optional'30'); System.out.println( proxy name - optional'proxy'); System.out.println( proxy port - optional'8080'); System.out.println( proxy logon name - optional'admin'); System.out.println( proxy password - optional'password'); } public static void main(String[] args) { PFProAPI pn = new PFProAPI(); // Check args, at least the first 3 must be there if (args.length < 3) { System.out.println( \nPFPRO + pn.Version() ); try { if ( args[0].equalsIgnoreCase(new String(-version)) ) { System.out.println(); return; } } catch (Exception e) { } help(); return; } // Place the arguments in the correct variables // Once we get an OutOfBounds exception, parsing will stop and therest will // retain their default values. try { HostAddress = args[0]; HostPort = Integer.decode(args[1]); ParmList = args[2]; Timeout = Integer.decode(args[3]); ProxyAddress = args[4]; ProxyPort = Integer.decode(args[5]); ProxyLogon = args[6]; ProxyPassword = args[7]; } catch (Exception e) { } // Set the certificate path pn.SetCertPath(certs); // Call the client. pn.CreateContext(HostAddress, HostPort.intValue(), Timeout.intValue(), ProxyAddress, ProxyPort.intValue(), ProxyLogon, ProxyPassword); String rc = pn.SubmitTransaction(ParmList); System.out.println(rc); pn.DestroyContext(); }}-----------end test file-------------------I have compiled this to a .class file and ran it.I can't tell if it is working or not but I don't think it is. (I don'tget back a result (0,1 etc..)I get:------------start output-------------------PFPRO J305Usage Error:pfpro host name 'test-payflow.verisign.com' host port number '443' parameter list'ccNum=5105105105105105100&ccExpDate=1205&amount=1.23' timeout(sec) - optional '30' proxy name - optional 'proxy' proxy port - optional '8080' proxy logon name - optional 'admin' proxy password - optional 'password'------------end output-------------------My questions:Can anyone tell if this was successful or not?If it was successful what do I need to do to get a back?Thanks,Donovan-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ -------------------------------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- Pay Flow Pro SDK test file (JAVA) (Donovan 2002)
|
**Warning: Involved Java and PayFlowPro question ahead** :-)Hi, I'm still having a heck of a time getting the PFP SDK working.This post is a bit envolved but I hoping some knowing person will takethetime to help out.This is for use with the pure java download version. This should be thesametest file for pretty much any of them.I am using the test file (below) and I have set (I think) all myspecific perams.-----------start test file-------------------// Verisign, Inc.// http://www.verisign.com// See contact.txt for additional contact information// Verisign Payflow Pro Java Clientimport com.Verisign.payment.PFProAPI;class PFProJava { // Set defaults static String HostAddress = test-payflow.verisign.com; static Integer HostPort = Integer.decode(443); static String ParmList =TRXTYPE=A&TENDER=C&PARTNER=wfb&VENDOR=vrn481200420&USER=ouruser&PWD=ourpass&ACCT=4111111111111111&EXPDATE=0804&AMT=1.00; static Integer Timeout = Integer.decode(80); static String ProxyAddress = ; static Integer ProxyPort = Integer.decode(0); static String ProxyLogon = ; static String ProxyPassword = ; // Help system static void help() { System.out.println( Usage Error: \n ); System.out.println(pfpro ); System.out.println( host name'test-payflow.verisign.com'); System.out.println( host port number'443'); System.out.println( parameter list'ccNum=5105105105105105100&ccExpDate=1205&amount=1.23'); System.out.println( timeout(sec) - optional'30'); System.out.println( proxy name - optional'proxy'); System.out.println( proxy port - optional'8080'); System.out.println( proxy logon name - optional'admin'); System.out.println( proxy password - optional'password'); } public static void main(String[] args) { PFProAPI pn = new PFProAPI(); // Check args, at least the first 3 must be there if (args.length < 3) { System.out.println( \nPFPRO + pn.Version() ); try { if ( args[0].equalsIgnoreCase(new String(-version)) ) { System.out.println(); return; } } catch (Exception e) { } help(); return; } // Place the arguments in the correct variables // Once we get an OutOfBounds exception, parsing will stop and therest will // retain their default values. try { HostAddress = args[0]; HostPort = Integer.decode(args[1]); ParmList = args[2]; Timeout = Integer.decode(args[3]); ProxyAddress = args[4]; ProxyPort = Integer.decode(args[5]); ProxyLogon = args[6]; ProxyPassword = args[7]; } catch (Exception e) { } // Set the certificate path pn.SetCertPath(certs); // Call the client. pn.CreateContext(HostAddress, HostPort.intValue(), Timeout.intValue(), ProxyAddress, ProxyPort.intValue(), ProxyLogon, ProxyPassword); String rc = pn.SubmitTransaction(ParmList); System.out.println(rc); pn.DestroyContext(); }}-----------end test file-------------------I have compiled this to a .class file and ran it.I can't tell if it is working or not but I don't think it is. (I don'tget back a result (0,1 etc..)I get:------------start output-------------------PFPRO J305Usage Error:pfpro host name 'test-payflow.verisign.com' host port number '443' parameter list'ccNum=5105105105105105100&ccExpDate=1205&amount=1.23' timeout(sec) - optional '30' proxy name - optional 'proxy' proxy port - optional '8080' proxy logon name - optional 'admin' proxy password - optional 'password'------------end output-------------------My questions:Can anyone tell if this was successful or not?If it was successful what do I need to do to get a back?Thanks,Donovan-- ------------------------------------------------------------------------ ------------------------------------------------------------------------<><> Donovan Brooke <><>->ï ------------------------------------------------------------------------ -------------------------------------------------------------------------------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Donovan
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
A multi-processor savvy WebCatalog? (1997)
More on the email templates (1997)
Further tests with the infamous shipCost (1997)
Username for Admin Group (1997)
Help :( (2001)
Follow-Up to: Removing [showif] makes a big difference in speed (1997)
Sort Order on a page search (1997)
Help with Repost Data msg from form (1997)
Fwd: State-of-the-Art Digital Aquarium for Your Computer (2006)
[listfiles] (1998)
WebCatalog/WebMerchant 2.1 (1998)
PROBLEM (1997)
FEA REQ: One .hdr, multiple .db's (2003)
Code database (1998)
[WebDNA] unique words (2009)
[include file=filename.inc&strip=t] (2002)
Upload to LINUX always breaks my sites - why? (2004)
Free WebDNA snippets (Extending WebCatalog) (1997)
Format all of a sudden doesn't work (1997)
WebCatalog/WebMerchant Manuals Available (1998)