Hello!
I'm new to all this, just completed basic checkout integration.
I want my customers to be able to press a button to get a refund (it will be digital goods).
Am I right that there's no way to get payment capture-id (that's needed for refund) from order-id (that's provided in basic integration tutorial)?
If I'm correct here, then the only solution I see is to get detailed response (headers "Prefer=representation") when creating the order, and then save in my database both order-id, and capture-id. Right?
However, it seems impossible to set headers in JS (https://www.paypal-community.com/t5/SDKs/Setting-Headers-in-js-client/m-p/1914234)
So my only way is to set up the transaction on the server, right?
Thanks!
... View more