get order incomplete in return_url handler

stephenmccrea
Contributor
Contributor

I finally have the full sequence working using the V2 (1.91. ?) REST API. But when I GET the order in my return_url handler only the order id field is populated - the rest are null and there is no 'status' field just a 'state' field (which is null).

 

Can anyone tell me what's going on - what I am missing? How can I tell the order was actually approved and paid?

 

Thanks in advance.

 

Login to Me Too
1 REPLY 1

stephenmccrea
Contributor
Contributor

it looks as though the return data structure is not what the SDK defines as  an 'Order'. Looking at the json returned I created an object to stream it into and read the proper values. There appears to be a disconnect between the documentation and the actual API unless there is another V2 api hidden somewhere out there...

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.