Instead of asking a question of everyone I am 'for once' posting something helpful. If you are having trouble getting started with the Paypal API here's something that will get you started.
Obtain your lcClientid and lcSecret from here - https://developer.paypal.com/developer/applications
m.lcBase64 = Strconv(lcClientid + ":" + lcSecret, 13)
loHttp = Createobject("wwHttp")
lohttp.addheader("Authorization","Basic " + m.lcBase64)
lohttp.cContentType = "application/x-www-form-urlencoded"
loHTTP.AddPostKey("grant_type","client_credentials")
lcUrl = [https://api.sandbox.paypal.com/v1/]
_cresult = lohttp.HttpGet(lcurl)
loSerializer = Createobject("wwJsonSerializer")
loResponse = loSerializer.DeserializeJson(_cResult)
This will generate a token for you to use the Paypal API using the WWWC httpget() function.
The loResponse object will contain the 'object of your dreams' - enjoy!
Thanks - I think this will be useful for me.
Michael,
Re: Object of your dreams
I think that depends what the URL is that you're calling at PayPal.
+++ Rick ---
Rick,
You are right, I just edited the original message.
MB
Speaking of PayPal - I've been using BrainTree for Credit Card Processing for years, and one huge advantage of BrainTree - being a PayPal company and all - is that you can process PayPal like a credit card. It's just another CC provider. BrainTree handles the PayPal validation flow for you, so your code doesn't have to. PayPal just processes like a credit card - provide a card and paypal as the payment mechanism and the processor handles the rest. All the backend PayPal order access features still are available same as if the orders were processed directly through the PayPal API.
This makes life a lot easier.
+++ Rick ---