I've built a nice simple checkout and it works fine but I'd like a bit more info from the actions.order.capture() function call I've got it all working - I get an authorised payment and receive a result from actions.order.capture - it only contains {"orderID":"2BJ093.....89303Y","payerID":"YUR6.....ZTCW"} Reading the api specs I can get more information if I supply a Prefer: return=representation header. The documentation are all using curl with -H to specify the headers. I can find nothing in the documents for the js SDK on supplying the headers. I've tried adding a headers: {'Prefer': 'return=representation'} to my actions.order.create(DATAOBJECT) and also to the actions.order.capture({headers: {"Prefer": "return=representation"}) but I didn't get anything different back. Can somebody point where the documentation is for setting the headers please. S
... View more