Update fields | Billing Page | JSON

Akhil19
Contributor
Contributor

How update Country , Email Address , Phone Number , First Name and Last Name from JSON on Billing Page.

 

{

     "intent" :   "CAPTURE" ,

      "application_context" :   {

         "return_url" :   "https://google.com" ,

         "cancel_url" :   "https://yahoo.com" ,

         "locale" :   "en-US" ,

         "landing_page" :   "BILLING" ,

         "shipping_preference" :   "SET_PROVIDED_ADDRESS"

    

      },


 

     "purchase_units" :   [

         {

             "amount" :   {

                 "currency_code" :   "USD" ,

                 "value" :   "100.00"

             },

 

             "shipping" :   {

                 "address" :   {

                     "address_line_1" :   "[removed]" ,

                     "address_line_2" :   "Floor 6" ,

                     "admin_area_2" :   "San Francisco" ,

                     "admin_area_1" :   "CA" ,

                     "postal_code" :   "94107" ,

                     "country_code" :   "US"

                 }

             }

         }   

     ]

}

Login to Me Too
1 REPLY 1

MTS_Chiranjeevi
Moderator
Moderator

Good day @Akhil19,

 

Thank you for posting to the PayPal community.

 

Please use the "Update Order" API call to make an update to the particular order. 

 

https://developer.paypal.com/docs/api/orders/v2/#orders_patch 

 

Merchant can also pass the "payer" object (email_address, name, phone, etc.) in the "Create Order" API call.

 

https://developer.paypal.com/docs/api/orders/v2/#orders_create 

 

https://developer.paypal.com/docs/api/orders/v2/#orders_create!path=payer&t=request 

 

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

Haven't Found your Answer?

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