Apple Pay: No Stripe

Test low-level Apple Pay functionality without Stripe libraries or code

⚠️ Note: This integration is not production ready and should only be used as a reference.

⚙️ Integration

Loading...

🧑‍💻 Code

<pre id="output">Loading...</pre>
const outputElement = document.querySelector('#output');

if (window.ApplePaySession) {
  ApplePaySession.canMakePaymentsWithActiveCard('merchant.4242.io.stripe').then(canMakePayments => {
    console.log(canMakePayments);
    outputElement.innerHTML = "canMakePaymentsWithActiveCard result: " + JSON.stringify(canMakePayments, null, 2);
  });
}
else {
  outputElement.innerHTML = 'This page will only work in a browser that supports Apple Pay, like Safari.';
}