paypal.Buttons dont allow shipping address change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
After some time I cannot find what I am looking for.
I would like to disable the change shipping address in the paypal.Buttons Checkout.
I found on the net that you are supposed to use NOSHIPPING=1 to disable checkout from show the change address field.
I have this code:
<script src="https://www.paypal.com/sdk/js?client-id=sb¤cy=USD"></script>
<div id="paypal-button-container" style=" width: 160px; height: 30px"></div>
<script>
paypal.Buttons({
style: {
NOSHIPPING: 1,
layout: 'horizontal',
tagline: false,
shape: 'pill',
size: 'responsive',
label: 'pay',
},
// Set up the transaction
createOrder: function (data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: '<%=FormatNumber(Gtotal,2)%>'
}
}]
});
},
// Finalize the transaction
onApprove: function (data, actions) {
return actions.order.capture().then(function (details) {
alert(details.status);
error: function (data) {
alert("error");
},
success: function (data) {
alert("happyhappyjoyjoy");
}
});
});
},
onCancel: function (data) {
alert("boohoo");
}
}).render('#paypal-button-container');
</script>
But the paypal process still shows the shipping option.
So what do I need to do to correct this or is the change of address I should process into my process?
Thanks ahead of time.
- Labels:
-
PayPal Buttons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- I have two transactions/Payments from the same user with different shipping address in Managing Risk and Fraud Archives
- Does Paypal prohibit businesses from changing a customer's shipping address at their request? in Business Tools Archives
- Cannot add shipping info!! in Business Tools Archives
- how to open a closed case and prove to paypal we are not scammers in Managing Risk and Fraud Archives
- How to verify the item sent was "as described"? in Managing Risk and Fraud Archives