I want to add phone number in shipping address but i couldn’t find in paypal documentation of order v2 api.When i checked paypal order api v1 documentation shipping phone number was available but in v2 i couldn’t find.
In paypal order v2 api in shipping variable it has only address_line_1, address_line_2, admin_area_1, admin_area_2, postal_code,country_code but in paypal order v1 it has additional variable phone to add shipping phone number.
Question posted in Paypal API
The official documentation to get you started can be found here.
The official documentation to get you started can be found here.
2
Answers
You can use the billing phone number:
https://developer.paypal.com/docs/api/invoicing/v2/#definition-billing_info
The
phone
in thepayer
object https://developer.paypal.com/docs/api/orders/v2/#orders-create-request-body