Skip to content Skip to sidebar Skip to footer

Paypal Rest Sdk: Remove Shipping Address And Payment Authorization So It Does Go To Pending State

I want to sell a feature/features to my client and the payment should be instant, so that it unlocks a feature immediately whenever the transaction is completed. I managed to execu

Solution 1:

  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.

  2. Instead of "authorize" you should use "sale" for the intent parameter.

  3. 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.

  4. 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"