avi312singh
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jun-09-2021
02:50 AM
Hi I am using this module to integrate the Paypal solution in my site: https://www.npmjs.com/package/@paypal/react-paypal-js
However even though it seems to be developed by paypal, there seems to be no option to disable the shipping address during checkout
<PayPalScriptProvider options={{ "client-id": clientId, currency: "GBP", "disable-funding": "sofort", shippingPreference: "NO_SHIPPING" }}>
Doesn't seem to have any effect at the checkout page as it still shows the delivery address
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Accepted Solutions
avi312singh
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun-09-2021
03:02 AM
const createOrder = (data, actions) => {
return actions.order
.create({
purchase_units: [
{
amount: {
value: donationAmount,
},
},
],
application_context: {
shipping_preference: "NO_SHIPPING"
}
})
.then((orderID) => {
setOrderID(orderID);
return orderID;
});
}
1 REPLY 1
avi312singh
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun-09-2021
03:02 AM
const createOrder = (data, actions) => {
return actions.order
.create({
purchase_units: [
{
amount: {
value: donationAmount,
},
},
],
application_context: {
shipping_preference: "NO_SHIPPING"
}
})
.then((orderID) => {
setOrderID(orderID);
return orderID;
});
}
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- How to hide the shipping address for a specific merchant - As no shipping address required in PayPal Payments Standard
- I can't remove, edit or add any more emial address. in PayPal Payments Standard
- Paypal changes customer address on website order. in Sandbox Environment
- "Show Order Details" Vs "Capture Payment For Order" in REST APIs
- Authorization failed due to insufficient permissions in REST APIs