Apple pay shows "Apple Pay is not available for this website"

Hi, we are testing Apple Pay in the sandbox, but after selecting a test card from Apple Pay and returning to our site, it simply displays “Apple Pay is not available for this website”.

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Square Sandbox
Supported Payment Methods by Country
Test in the Sandbox

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

Apple doesn’t allow Sandbox test credit card values. You must use a valid credit card from your Apple Pay Wallet. The card isn’t charged for test payments as long as you’re testing in the Square Sandbox. :slightly_smiling_face:

Hi Bryan! Thanks for the replying

What about the test card provided by Apple Pay: Test Cards for Apps and the Web?

We tried it with the In-App Payments SDK in the sandbox environment, and it worked without an issue. So, we are wondering if it can be used to test with the web payment SDK, too.

With our Web Payments SDK you must use a valid credit card from your Apple Pay Wallet according to the team. The card isn’t charged for test payments as long as you’re testing in the Square Sandbox. :slightly_smiling_face: