Disable shipping info and pay later

UsarShakya
Contributor
Contributor
I am integrating standard paypal payment process for australia and I only want payment. But my problem is after user login to paypal, there is option for shipping address change and also pay later. Is there any way to disable this option?
Login to Me Too
1 REPLY 1

MTS_Chiranjeevi
Moderator
Moderator
 

Good day @UsarShakya,

 

Thank you for contacting PayPal community.

 

Our sincere apologies for the inconvenience caused.

 

Yes, you can remove/disable the "Pay Later" funding source from the smart button by passing the "disable-funding=paylater" as below:

< script src=" https://www.paypal.com/sdk/js?client-id=YOUR_CLIENT_ID & disable-funding=paylater" > < / script >

I request to contact your website developer to update the SDK script using the above method.

Please refer to the detailed guide link- https://developer.paypal.com/docs/checkout/reference/customize-sdk/#disable-funding

 

Merchants should be able to handle shipping address details using the "shipping_preference" field in the Orders API request call without any issues. 

 

https://developer.paypal.com/docs/api/orders/v2/#definition-application_context  

 

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.

Minimum length: 1.

 

Thank you so much for your patience and understanding.

 

Sincerely,

Chiranjeevi

PayPal/Braintree 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.