How can one get payers billing address ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have done paypal integration on sandbox environment.
I have used java sdk for that - https://developer.paypal.com/docs/api/quickstart/payments/#execute-payment
Following apis are used by sdk there
To get payment data - https://api.sandbox.paypal.com/v1/payments/payment/{PAYMENT-ID}
To approve payment by user - https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token={TOKEN}
To get sale data - https://api.sandbox.paypal.com/v1/payments/sale/{ID}
The first api provide "shipping_address". If I wish to get billing address of the user, how could I get it?
- Labels:
-
Payments REST APIs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like the payments v1 GET API returns the billing address in the "payer.funding_instruments[].credit_card.billing_address" field.
See: https://developer.paypal.com/docs/api/payments/v1/#payment_get , https://developer.paypal.com/docs/api/payments/v1/#definition-credit_card .
Do you have that field in your response?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These attributes are null
createdPayment.getPayer().getPayerInfo().getBillingAddress()
createdPayment.getPayer().getFundingInstruments()
Could it be due to sandbox environment?
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Multiple locations to same email address result in one client only. in SDKs
- Show all billing address fields when hiding shipping address fields in PayPal Payments Standard
- Re: Enable the return of billing address in Sandbox Environment
- Request enable payer billing address in Sandbox Environment
- Enable Billing Address Feature in Sandbox Environment