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
... View more