Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Authorize.net
Message
 
To
11/07/2013 16:50:52
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01578236
Message ID:
01578282
Views:
64
>Does anyone have code available for connecting a desktop application (not a web page) to Authorize.net?

Use Rick Strahl's class with this code:
*** AUTHORIZE.NET TEST OPERATION
o=CREATEOBJECT("wwAuthorizeNet")

o.cHTTPLink = "https://secure.authorize.net/gateway/transact.dll"
o.cReferringUrl = "https://www.somewebsite.com"
o.cStoreName = "Accont#
o.cOrderId = "TestOrder" + SYS(2015)
o.lTestTransaction = .f.
o.nOrderAmount = 1.50
o.cCardNo = "xxxxxxxxxxx"
o.cSecurityCode = ""
o.cCardExpiration = "11/2005"
*o.cCardMonth = "12"
*o.cCardYear = "2002"
o.cAddress = "Address1, City, Province"
o.cZip = "L0G XXX"

o.cFirstName = "Mark"
o.cLastName = "Letheren"
o.cEMail = ''
lnSecs = SECONDS()
llCCResult = o.ValidateCard()


IF o.lError && Hard Error 
? "Error: ",o.cErrorMsg
RETURN
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform