I am using REST API to create a payment (in sandbox environment) with payment_method="paypal". For some reason I don't get shipping address in the payer_info object in the response. I am also not sure how to obtain "notes to seller" via REST API. Any pointers would be greatly appreciated.
Shipping address data is not currently returned for PayPal transactions in the REST API's we offer, unless a shipping address was initially submitted along with the request.
Our new REST API's are evolving as we speak however - I'm seeing all your requests for it though, so I'm definitely passing that information on.
In the interim you could perhaps consider making another call to our classic GetExpressCheckoutDetails
API. This would only need the Express Checkout token (EC-xxxxx), classic API username, API password and API signature and return the shipping address data (amongst other things) to you in the response (docs).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With