Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

try to get shipping address from PayPal

Vote:
 

Hi,

PayPal Api can we get shipping details before we capture the payment?

Right now when I try to get the order details(order status "APPROVED") the shipping address is null from it.

#326193
Jul 29, 2024 20:37
Vote:
 

DId you make your own API integration?

If you use their Orders V2 API, then purchase_units[0].shipping.address should contain an object with address fields. But only if you supply it from the site, or the customer fills it in on the PayPal form.

#326295
Jul 31, 2024 10:30
Vote:
 

Hi,

I'm using Hotcakes PaypalWebServices when I get the order  "purchase_units[0].shipping.address " this is null.

#326322
Jul 31, 2024 13:46
Vote:
 

I don't know that (Hotcakes) integration. But I notice that the response also miss Items and Payments and other stuff.

Did the integration even fill them in? Or did the request set Prefer=minimal header, instead of Prefer=representation?

What if you load the order in Postman? Do you see the missing values?

#326333
Jul 31, 2024 17:22
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.