cancel
Showing results for 
Search instead for 
Did you mean: 

Missing Payer Address with Orders API V2 / Sandbox

Options
MTS_Justin
Moderator
Hello,

I've tested this today with two new sandbox accounts, creating a V2 order with one and approving with the other and then capturing the order and the payer object returned in the capture API response included the complete shipping address.

Create Order : https://developer.paypal.com/docs/api/orders/v2/#orders_create

Redirect buyer to "approve" URL to approve the transaction

Capture Order :

https://developer.paypal.com/docs/api/orders/v2/#orders_capture

Response :

"shipping": {
"name": {
"full_name": "removed"
},
"address": {
"address_line_1": "1 Main St",
"admin_area_2": "San Jose",
"admin_area_1": "CA",
"postal_code": "95131",
"country_code": "US"
}
},

This is the standard default shipping address provided on sandbox accounts.

"to get the complete payer.address you will need to call your account manager or merchant support and they can enable it for your account if you meet their criteria"

I think they might be referring to the "billing" address rather than the shipping address. The buyer's billing address is not returned by default and does require PayPal to enable this functionality on the account.

Thanks !


Was my post helpful? If so, please give me a kudos!

Missing Payer Address with Orders API V2 / Sandbox

Options
pzauner
Contributor

Hello Justin,

 

thank you for your reply.

Is it possible to activate the function on the developer account? If yes, how do I do that or do I need to contact Paypal for that?

 

kind regards,

 

Patrick

Missing Payer Address with Orders API V2 / Sandbox

Options
MTS_Justin
Moderator
Hello,

You shouldn't need to get it enabled for it to work within our sandbox / production environment, it should work automatically for the shipping address.

For the billing address, if you wanted this returned for a live / production account, you would need to request the same from our customer service / business support or account management teams.

Customer Service : https://www.paypal.com/smarthelp/contact-us

Thanks !

Was my post helpful? If so, please give me a kudos!

Missing Payer Address with Orders API V2 / Sandbox

Options
pzauner
Contributor

Hello,

 

what do you mean by that "You shouldn't need to get it enabled for it to work within our sandbox / production environment, it should work automatically for the shipping address."

 

I want to test it, because I have to create the invoice with the billing address for the customer. I can read out the shipping address, this works fine, but billing and shipping can be different. Otherwise I need to request it for live / production account and then implement it afterwards. But I think thats not the point.

 

kind regards,

<removed>

Missing Payer Address with Orders API V2 / Sandbox

Options
MTS_Justin
Moderator
Hello,

For shipping address, it should work without any changes. For the billing address, it needs to be enabled on your account.

I can do this for a sandbox account if you share the merchant id for the sandbox account in which you want it enabled.

If you wanted this returned for a live / production account, you would need to request the same from our customer service / business support or account management teams.

Customer Service : https://www.paypal.com/smarthelp/contact-us

Thanks !

Was my post helpful? If so, please give me a kudos!

Haven't Found your Answer?

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