I am using javascript inside a html website and I need to get the payer's address and use $post in order to send it by email by using php. Right now I have found a way to get the payer's name with:
var name = details.payer.name.full_name;
but now I am trying to get the address in a similar fashion by using paypal's api docs. I have found:
var address = details.payer.address.address_line_1;
alert('The address is ' + address);
the alert only being used to test if the variable has been properly assigned. But when I test it out, I get "The address is undefined". You can test it out here with the credentials for the sandbox account being: Email: <Removed> & Password: <Removed>.
... View more