Get selected shipping address from setup-token endpoint

stelladev2023
New Community Member

Hi,

 

I'm working on an integration for PayPal using the instructions here: https://developer.paypal.com/docs/checkout/save-payment-methods/purchase-later/paypal/

 

We need to be able to save the PayPal wallet to be charged at a later date.  I want a customer to be able to select their shipping address so for step 2 from the instructions above, I'm not passing any shipping address and I'm passing GET_FROM_FILE for shipping_preference.  When I go to the generated approval link, I can select a shipping address, however I'm not sure how to get the shipping address the customer selected using the API.  I've tried retrieving the setup token after getting an approval id using the endpoint here: https://developer.paypal.com/docs/api/payment-tokens/v3/#setup-tokens_get

 

But I don't get the shipping address the customer selected.

 

Anyone know a way to get that?

 

Thanks!

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.