Missing Payer Address with Orders API V2 / Sandbox

tiefstapler
Contributor
Contributor

Hi,

 

I am setting up a payment integration with PayPal Checkout Button and orders API v2, which I test in the sandbox environment.

When an order is completed, the API (/v2/checkout/orders) returns a valid order, but I do  not completely receive the payer address.

Payer address look like this:

 

 

 

 

 "payer": {
        "name": {
            "given_name": "Peter",
            "surname": "<removed>"
        },
        "email_address": "<removed>",
        "payer_id": "HEU6X43KU231",
        "address": {
            "country_code": "DE"
        }
    },

 

 

 

 

but the https://developer.paypal.com/docs/api/orders/v2/#definition-payer says that the payer should also contain:

  • address_line_1,
  • address_line_2,
  • admin_area_1,
  • postal code.

I would like to use this information to send an invoice to the customer after payment.

As a workaround I could also ask for the information in the dialog in our part of the order process (in our GUI, before checkout), but as we use paypal plus to enable other payment methods it would be a very bad user experience to enter the same data twice.

 

Maybe it only occurs in the Sandbox environment and not in production? My Sandbox Accounts (which are configured for buying stuff in the sandbox) only do have a country Code and no other address information when I take a look at via my paypal dashboard/sandbox. Maybe that is the reason why the information is empty, but I could not identify where to add the address information in the sandbox account. In my opinion it is essential to be able to test this feature in the  test environment / sandbox.

 

Do you have a clue how to fix this?

 

Thanks a lot in advance

Login to Me Too
24 REPLIES 24

MTS_Justin
Moderator
Moderator
Hello,

Thanks for sharing the merchant id for your sandbox account.

I've enabled the return of the buyer's billing address on this account as requested.

Thanks !

Was my post helpful? If so, please give me a kudos!
Login to Me Too

vplumbing
Contributor
Contributor

Hi @MTS_Justin , it worked!.
Thank you!

Is there an email I can use to get in contact with someone who can enable it in production?
I tried the live chat and your colleague said this:
"Please call out specialists in Product and Site Support at your earliest convenience on <removed> for further assistance."

Login to Me Too

pzauner
Contributor
Contributor

Hello @MTS_Justin,

 

can you also activate it for my account? The merchant id is 2ETEDRRXWQQ6S.

 

Thank you,

 

Patrick

Login to Me Too

MTS_Justin
Moderator
Moderator
Hello Patrick,

Thanks for sharing the merchant id for your sandbox account.

I've enabled the return of the buyer's billing address for your account as requested.

Thanks !

Was my post helpful? If so, please give me a kudos!
Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

Great to hear it worked for you.

I don't have an email address that you could contact. Any changes to production accounts need to be addressed to our customer service team.

Thanks !

Was my post helpful? If so, please give me a kudos!
Login to Me Too

Haven't Found your Answer?

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