PayPal Checkout Hosted Fields

nkavian
Contributor
Contributor

I have followed all of the instructions on the following page to setup PayPal Checkout Hosted Fields and I'm always getting the message I'm ineligble

 

https://developer.paypal.com/docs/business/checkout/advanced-card-payments/

 

paypal.HostedFields.isEligible() is always false!!

 

What do I need to do to get this to work on sandbox?

Login to Me Too
3 REPLIES 3

FullIntegration
Contributor
Contributor

Hei, I too faced the same issue. In my case, I was using a personal account as a developer account. When I created sandbox credentials from the Business account it started to work. So make sure, 
1. Developer account is linked/created with the business account
2. Sandbox account is created from that. 
3. Sandbox account should also be a business account and it should be enabled for advanced payments ( Using this link: https://developer.paypal.com/docs/business/checkout/advanced-card-payments/#enable-your-account ) 

Login to Me Too

Daniels118
Contributor
Contributor

Also be sure to not include "disable-funding=card" in the javascript SDK parameters. I was upgrading from standard payments where I had this option enabled and this forced isEligible to always return false even if my account was approved.

Login to Me Too

VixieTSQ
Contributor
Contributor

That was it for me! I turned off card funding because I didn't want the card button, because I was going to use hosted fields. Kinda silly.

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.