Missing delivery address and note to seller in response to making payment

I use the REST API to create a payment (in a sandbox environment) using payment_method = "paypal". For some reason, I do not get the delivery address in the payer_info object in the response. I'm also not sure how to get "seller notes" through the REST API. Any pointers would be greatly appreciated.

+5
source share
2 answers

These shipping addresses are not currently being returned for PayPal transactions in the REST API we offer, unless you originally sent the shipping address along with the request.

Our new REST API is evolving as we speak, but I see all your requests for it, so I definitely pass this information on.

, API GetExpressCheckoutDetails. Express Checkout (EC-xxxxx), API, API API ( ) (docs).

+1

Paypal REST Api. ShippingAddress ItemList

 $shippingAddress = new ShippingAddress();
 $shippingAddress->setLine1($_POST['shipstreet'])
->setCity($_POST['shipcity'])
->setState($_POST['shipstate'])
->setPostalCode($_POST['shipzip'])
->setCountryCode($_POST['shipcountry'])
->setRecipientName($_POST['shipname']);

 $itemList = new ItemList();
 $itemList->setItems($itemsarr); //my array of items
 $itemList->setShippingAddress($shippingAddress);

POST- . , payer_info, .

 $payerinfo = new PayerInfo();
 $payerinfo->setEmail($_POST['email'])
->setFirstName($_POST['firstName'])
->setLastName($_POST['lastName']);

 $payer = new Payer();
 $payer->setPaymentMethod("credit_card")
->setPayerInfo($payerinfo)
->setFundingInstruments(array($fi));
0

All Articles