API: Restrict payment by card and refund by card

dane8701
New Community Member

Is it possible to restrict payments by card? Basically, only PayPal users can pay.

In case we can't, how do we refund and send money to someone whose card we only have?

Login to Me Too
1 REPLY 1

MTS_Chiranjeevi
Moderator
Moderator

Good day @dane8701,

 

Thank you for posting to the PayPal community.

 

Important : By default, funding source eligibility is determined based on a variety of factors. To prevent certain buttons from displaying, see Disable funding in the JavaScript SDK reference.

 

The buttons that display are decided automatically, based on a range of factors, including:

  • Buyer country 
  • Device type
  • Funding sources the buyer has opted to see.

https://developer.paypal.com/sdk/js/reference/#link-whichbuttonswillisee 

 

You can try passing the disable-funding parameter (Deprecated) in the PayPal JavaScript SDK

 

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

 

https://developer.paypal.com/sdk/js/configuration/#link-disablefunding 

 

Merchant can perform Refund (NVP/SOAP) API :

 

https://developer.paypal.com/docs/archive/express-checkout/ht-basicRefund-curl-etc/
https://developer.paypal.com/docs/nvp-soap-api/refund-transaction-nvp/?mark=RefundTransaction%20#
                                                      
For Refund (REST) API Integration, please refer the below guide links. 

 

https://developer.paypal.com/docs/integration/direct/payments/refund-payments/ 

https://developer.paypal.com/docs/api/payments/v2/#captures_refund

 

Note Merchant can also process manual refund, by follow the steps provided in the below guide link.

https://www.paypal.com/us/smarthelp/article/how-do-i-issue-a-full-or-partial-refund-faq780

 

Please contact our PayPal Customer service via link - https://www.paypal.com/smarthelp/contact-us (then choose at the bottom one of the contact methods - email or phone) who should be able to help you regarding the manual refund request.

They will be able to assist you further as they are specially trained to address this type of account inquiry.

 

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.