I\'m integrating the Smart Payment Buttons in the paypal checkout
You need to set shipping_preference parameter of the application_context object to 'NO_SHIPPING':
paypal.Buttons({
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{ amount: { value: 99.00 } }],
application_context: {
shipping_preference: 'NO_SHIPPING'
}
});
},
onApprove: function(data, actions) {}
}).render(button);
You can read more about Application Context Object