php - How to add shipping phone number paypal order v2 api
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.
Answer
Solution:
You can use the billing phone number:
https://developer.paypal.com/docs/api/invoicing/v2/#definition-billing_info
Answer
Solution:
The phone
in the payer
object https://developer.paypal.com/docs/api/orders/v2/#orders-create-request-body