PayPal REST SDK: Remove Shipping Address And Payment Authorization So It Does Go To Pending State
Solution 1:
In the Classic API there was a flag for NOSHIPPING you could include in your request that would disable shipping address requirements during checkout. I know it's in REST somewhere, but I'm struggling to find it in the reference right now.
Instead of "authorize" you should use "sale" for the intent parameter.
Not sure what you're asking here..?? Just build your shopping cart so your user can add as many items as they want to their cart, and then pass those cart details into your PayPal payment request.
It seems to be handling the actual pay call to PayPal (ie. paypal.payment.create)
Solution 2:
This document shows the use of the no_shipping field in button code:
https://developer.paypal.com/docs/checkout/how-to/customize-flow/#pass-experience-profile-options
To call the API directly, you have to create a web experience profile object containing this field (input_fields.no_shipping):
https://developer.paypal.com/docs/api/payment-experience/v1/#web-profiles_create
Then reference it in your /payment call (the experience_profile_id field) https://developer.paypal.com/docs/api/payments/v1/#payment
Post a Comment for "PayPal REST SDK: Remove Shipping Address And Payment Authorization So It Does Go To Pending State"