Need to remove "ship to my billing address" checkmark on Paypal Checkout payment page!

msakhlaq
Contributor
Contributor

Hello!

I recently started integrating Paypal checkout on my website and still testing in sandbox mode. I would like to remove the "ship to my billing address" checkmark that appears on the checkout page as it is unnecessary for my use case and my confuse my customers.  I have not had too much luck on the documentations. Any help would be appreciated.

Login to Me Too
1 REPLY 1

msakhlaq
Contributor
Contributor

I found the solution a couple of months later 😛 This is how you do it in JS

paypal.Buttons({          createSubscription: function (data, actions) {

              return actions.order.create({

             ///other stuff , 
                  'application_context': {
                      'shipping_preference': 'NO_SHIPPING'
                  }
              });
          },          onApprove: function (data, actions) {

              // ...
          }
      })
      .render('#paypal-button-container');


Credit: https://stackoverflow.com/a/57650190/8008742

 

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.