After Billing Agreement conversion full billing address is not retrieved

DWdeveloper
Contributor
Contributor

Hi,

We are trying to convert the Billing Agreement to a payment token using this endpoint - https://developer.paypal.com/docs/api/payment-tokens/v3/#payment-tokens_create. Unfortunately, the billing address is not retrieved in the expected format, namely, we are not getting address_line_2, admin_area_1, or admin_area_2 properties in the response object. The sandbox account - “FTGXC96R23DHS”.

 

Please see the response (debug id - a65d293c96600) :

 

{
   "id":"88m4799541914464a",
   "customer":{
      "id":"PErdJaVevH"
   },
   "payment_source":{
      "paypal":{
         "shipping":{
            "name":{
               "full_name":"test test"
            },
            "address":{
               "address_line_1":"473 Wiseman Street",
               "admin_area_2":"Sevierville",
               "admin_area_1":"TN",
               "postal_code":"37862",
               "country_code":"US"
            }
         },
         "usage_type":"MERCHANT",
         "customer_type":"CONSUMER",
         "email_address":"*****",
         "payer_id":"KQ8J29DP3YCCU",
         "name":{
            "given_name":"Angelo",
            "surname":"Filippo",
            "full_name":"Angelo Filippo"
         },
         "phone":{
            "phone_number":{
               "country_code":"US",
               "national_number"[Removed. Phone #s not permitted]
            }
         },
         "address":{
            "address_line_1":"2200 Mission College Blvd.",
            "postal_code":"95054",
            "country_code":"US"
         }
      }
   },
   "links":[
      {
         "href":"https://api.sandbox.paypal.com/v3/vault/payment-tokens/88m4799541914464a",
         "rel":"self",
         "method":"GET",
         "encType":"application/json"
      },
      {
         "href":"https://api.sandbox.paypal.com/v3/vault/payment-tokens/88m4799541914464a",
         "rel":"delete",
         "method":"DELETE",
         "encType":"application/json"
      }
   ]
}

 

 

 
Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.