Is it possible to remove the shipping address field or make it not required during PayPal checkout?

shivshaktisingh
Contributor
Contributor

I am using PayPal as a payment gateway , is it possible to make shipping address not required?

Login to Me Too
3 REPLIES 3

Kavyar
Moderator
Moderator

Good day,

 

Thank you for posting to the PayPal community.

 

Please follow the below detailed steps & instructions based on your website integration.

 

1. For REST API integration: You can pass value "NO_SHIPPING" to disable shipping address during checkout.

 

For digital goods, the payment API request call should be correct value under "Shipping_Preference" field.

Shipping_preference : The location from which the shipping address is derived. The possible values are:

  • GET_FROM_FILE: Get the customer-provided shipping address on the PayPal site.
  • NO_SHIPPING: Redacts the shipping address from the PayPal site. Recommended for digital goods.
  • SET_PROVIDED_ADDRESS: Get the merchant-provided address. The customer cannot change this address on the PayPal site. If merchant does not pass an address, customer can choose the address on PayPal pages.
  • Default value: GET_FROM_FILE.

 

Please visit the following link - https://developer.paypal.com/docs/api/orders/v2/#definition-experience_context_base

 

2. For NVP API integration, pass the "no_shipping" as "1” in your SetExpressCheckoutRequest API call to disable shipping address during checkout.

 

NOSHIPPING : Determines whether PayPal displays shipping address fields on the PayPal pages. For digital goods, this field is required, and you must set it to 1. 

 

Value is:

  • 0 — PayPal displays the shipping address on the PayPal pages.
  • 1 — PayPal does not display shipping address fields and removes shipping information from the transaction.
  • 2 — If you do not pass the shipping address, PayPal obtains it from the buyer's account profile.

 

Please visit the following link - https://developer.paypal.com/api/nvp-soap/set-express-checkout-nvp/#link-setexpresscheckoutrequestme...

 

3. For "PayPal Payments Standard" legacy button integration, pass the "no_shipping" as "1" to disable shipping address during checkout.

 

Default value is 0.

 

No_shipping.

Do not prompt buyers for a shipping address.

 

Valid value is:

0 - Prompt for an address, but do not require one.

1 - Do not prompt for an address.

2 - Prompt for an address and require one.

 

Please visit the following link - https://developer.paypal.com/api/nvp-soap/paypal-payments-standard/integration-guide/Appx-websitesta...

 

If your still facing issues, please create an MTS ticket via -  https://www.paypal-support.com/s/?language=en_US  with the detailed information and error details.

 

Sincerely,

Kavya

PayPal MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

shivshaktisingh
Contributor
Contributor

Thanks for the reply , but i am using paypal sdk ?It would work in sdk also?

Login to Me Too

Kavyar
Moderator
Moderator

Good day @shivshaktisingh 

 

Yes, when the SDK is called, it initiates a call to the v2 order API (i.e., REST API) on the backend to fulfill the requested action.

 

If your still facing issues, please create an MTS ticket via -  https://www.paypal-support.com/s/?language=en_US  with the detailed information and error details.

 

Sincerely,

Kavya

PayPal MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.