- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
I have a working PayPal REST API server side (php) express checkout.
BUT.... We are selling a service, so the shipping address needs to be removed.
I cannot find this info anywhere.
API token (/v1/oauth2/token)
API authorize (/v1/payments/payment)
User clicks PayPal checkout (express checkout js) <------ shows shipping address here (don't need this)
API execute (/v1/payments/payment/".$payment_ID."/execute)
Payment done
I have looked at "no_shipping": "1" but does not seem to work.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, in this case you can try to pass something like this on your experience profile:
"input_fields": {
"no_shipping": 1,
"address_override": 0
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, in this case you can try to pass something like this on your experience profile:
"input_fields": {
"no_shipping": 1,
"address_override": 0
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How many days does a "Web Experience Profile" last?
Do I need to call a new one each time, and then delete it. Or can I use the same experience profile ID if I don't need to change the profile?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It also works by adding only this after Value and currency:
application_context: {
shipping_preference: 'NO_SHIPPING'
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, it worked for me very well!
I use Ruby, here is the part of my code for PayPal subscribe button that also includes other useful parts I collected from few places to make business flow work (mix ruby and js):
createSubscription: function(data, actions) {
return actions.subscription.create({
plan_id: "<%= .paypal_id %>",
<% if and > 0 %>
start_time: "<%= (@time_to_charge).strftime("%FT%TZ") %>",
<% end %>
application_context: {
brand_name: "My Brand name",
shipping_preference: 'NO_SHIPPING'
},
plan: {
taxes: {
percentage: $("#total_costs")[0].dataset.tax,
inclusive: false
}
},
});
},
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- PAYER_ACTION_REQUIRED returned for Capture intent when calling v2 checkout orders in Sandbox Environment
- Error: "Unable to change shipping method. Please try again." in PayPal popup in REST APIs
- Hide shipping address in Debit/Credit card form in PayPal Payments Standard
- Missing Customer's Billing / Shipping address in WooCommerce in REST APIs
- Remove Shipping Address from the Paypal Checkout in Sandbox Environment