So my new project is to create a DB form that processes credit card payments. I already have a merchant account with Intuit. They have a SDK kit that allows you to create your own application and link credit card processing to your existing merchant account. In short, the process is to essentially send ("POST") a XML document containing all the customers credit card and charge info to a URL (sending the request). Then the URL returns a response (also in XML format) with approvial status, auth. code and etc.
I haven't created anything yet, but in researching first I have found that using code similar to whats below I can send the XML (the code is just copied directly from a different forum and has nothing directly to do with my question).
Assuming that this is the correct method to "send" the XML(Intuits website states that you must "POST" to a URL), how would I first go about creating/generating the XML inside Access to later POST to the URL? Would I save it in a variable or object, save it in a external text file, or somehow generate it on the spot??? Also after I receive the response, how would I retrieve the data in that XML to use back in my DB application? This is where I'm stuck and need assistance. Any suggestions???
I haven't created anything yet, but in researching first I have found that using code similar to whats below I can send the XML (the code is just copied directly from a different forum and has nothing directly to do with my question).
Code:
Dim objXmlHttp As Object
Set objXmlHttp = CreateObject("MSXML2.ServerXMLHTTP")
objXmlHttp.Open "POST", webServicePath, False
objXmlHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
Dim Response As String
objXmlHttp.send wrt.output
'OK status
If objXmlHttp.Status = 200 Then
Response = objXmlHttp.responseText
End If
Set objXmlHttp = Nothing
Assuming that this is the correct method to "send" the XML(Intuits website states that you must "POST" to a URL), how would I first go about creating/generating the XML inside Access to later POST to the URL? Would I save it in a variable or object, save it in a external text file, or somehow generate it on the spot??? Also after I receive the response, how would I retrieve the data in that XML to use back in my DB application? This is where I'm stuck and need assistance. Any suggestions???