Hi Vince,
Based on the API doc (https://developer.authorize.net/api/reference/)
you can do all transactions from VFP using West-Wind Internet Client tools.
All transactions go to the same end point
(https://apitest.authorize.net/xml/v1/request.api for testing), which
makes it fairly easier.
All you need is:
* build a structure of nested VFP empty objects like documentations
explains
* turn these objects into JSON using wwJSON* or VFPX's nfJSON
* send the request with the JSON as POST data
* get the JSON response
* turn the JSON response into a structure of VFP empty objects using
wwJSON* or VFPX's nfJSON
* recurse on these objects using aMembers() and extract data like
documentations explains
The test page issues an 'option' request before the regular 'post'
request, not sure why.
Thierry Nivelet
FoxInCloud
Give your VFP app a second life in the cloud
http://foxincloud.com/
Le 26/10/2017 à 21:42, Vince Teachout a écrit :
A friend of mine sent the following question, and I don't know the
answer. Does anyone know off the top of their head?
"I have a VFP question if you do not mind. I have a client with an
old custom app in VFP 7 and 9. They process credit cards using
Authorize.net. Authorize.net is pushing everyone to a new API and I
am tasked with migrating the client’s apps so they can use this new
API (https://developer.authorize.net/api/reference/index.html).
Currently they use HTTP Posts to send in the CC info.
Anyway, my question is this. Authorize offers a development kit and
example code using C#. Therefore it should be .Net compliant and
wouldn’t that mean I could use the same in a VFP application?"
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.