3

I want to include debit/credit card payments powered by papal for my website, I am following the guide as per

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

but for the code

paypal.HostedFields.isEligible()

I always get the false or undefined as error, may be I skipped something, please help.

Avin Mathew
  • 336
  • 11
  • 25
  • Have you requested advanced debit and credit card processing for your sandbox business account? https://developer.paypal.com/docs/business/checkout/advanced-card-payments/#1-enable-your-account – MattRowbum Jun 11 '21 at 12:45
  • I do have business and advanced credit card processing enabled, its always false as well – direxit Jan 15 '22 at 15:37
  • I'm facing the same issue. did you find a solution for this? everybody is referring to documentation and asking if it's enabled for advanced payments but I can't find any guide on how to enable it. – Arman Avetisyan May 05 '22 at 20:46
  • For us it took a few days, before it started working - we contacted the support, but they told us sandbox environments do not need manual approval. – Andreas Jul 06 '23 at 10:39

2 Answers2

0

I found this answer on the Paypal community.

"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 )"
Reggio
  • 1
0

Here the keypoints:

  • You need a business account to use advanced payments.
  • You don't need to have a real business account when working in the sandbox environment: you can create a fake business account in the sandbox and use it.
  • You need to ask for approval to use the advanced payments. This request must be done separately for sandbox and production accounts.
  • When loading the Javascript SDK be sure to not pass the disable-funding=card parameter, otherwise isEligible() will return false even if your account has been approved!
Daniels118
  • 1,149
  • 1
  • 8
  • 17