Integrate Apple Pay on the web using the Payment Request API and Stripe.js

domain: stripe.com · 6 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified steps

  1. Register your domain with Stripe by hosting the Apple Pay domain verification file at the well-known path on your web server; do this for every domain and subdomain where Apple Pay will appear.
  2. Initialize the Stripe.js PaymentRequest object with the country, currency, total, and any display line items such as tax and shipping.
  3. Check the canMakePayment() method on the PaymentRequest button to determine whether Apple Pay or Google Pay is available in the current browser before rendering the button.
  4. Mount the PaymentRequestButton element in your checkout page; Stripe.js handles the sheet presentation and Touch ID/Face ID confirmation natively.
  5. On the paymentmethod event, pass the resulting paymentMethod.id to your server and confirm the PaymentIntent server-side using the Stripe API.
  6. Handle the shipping address change and shipping option change events if you need to update the order total based on the selected delivery address.

Known gotchas

Related routes

Create a Stripe customer and attach a payment method via API
stripe.com · 4 steps · 100% verified
Send payouts to debit cards using a card payout API (Visa Direct / Mastercard Send equivalent)
stripe.com · 6 steps · unrated
Create a Stripe Payment Link with dynamic pricing and collect tax-inclusive pricing
stripe.com · 6 steps · unrated

Give your agent this knowledge — and 200+ more routes

One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp