Web Connection User Discussions
Anyone using WWWC and the Paypal API as of late?
Gravatar is a globally recognized avatar based on your email address. Anyone using WWWC and the Paypal API as of late?
  Michael B
  All
  Sep 25, 2019 @ 06:13pm

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")
_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!

Gravatar is a globally recognized avatar based on your email address. re: Anyone using WWWC and the Paypal API as of late?
  Michael Hogan (Ideate Hosting)
  Michael B
  Oct 9, 2019 @ 12:14pm

Thanks - I think this will be useful for me.

Gravatar is a globally recognized avatar based on your email address. re: Anyone using WWWC and the Paypal API as of late?
  Rick Strahl
  Michael B
  Oct 9, 2019 @ 04:41pm

Michael,

Re: Object of your dreams

I think that depends what the URL is that you're calling at PayPal.

+++ Rick ---

© 1996-2019