Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing shipping address and note to seller in the create payment response

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.

like image 594
user1886877 Avatar asked Nov 03 '22 01:11

user1886877


1 Answers

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).

like image 166
Robert Avatar answered Nov 11 '22 10:11

Robert