NO_SHIPPING Positioning in the code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is the bit of code I found here by @MTS_Jennifer.
I'm using this code to stop PayPal asking the buyer for their address on the pay form as mine is Digital Downloads only.
******************
"application_context": {
shipping_preference: "NO_SHIPPING",
},
******************
I've put it in my PayPal Standard buyer's page like this:
BEFORE
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{"description": blah blah
AFTER
createOrder: function(data, actions) {
return actions.order.create({
"application_context": {
shipping_preference: "NO_SHIPPING",
},
purchase_units: [{"description": blah blah
Is this the correct place to put this please?
It works OK, but I want to do it right.
Thanks for any help, Steve
- Labels:
-
Carts
-
PayPal HTML Buttons
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Customising Paypal Checkout Button in PayPal Payments Standard
- Change the button from Sandbox to Production in REST APIs
- Show all billing address fields when hiding shipping address fields in PayPal Payments Standard
- Paypal Pay button generates GENERIC_ERROR in PayPal Payments Standard
- Payment not automatically being captured, funds not transferred in Sandbox Environment