ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Apple Pay

Implement Apple Pay for web and iOS with merchant validation, token handling, and production-safe checkout flows.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/ivangdavila/apple-pay
Or

Setup

On first use, read setup.md and confirm platform, PSP, and release target before making code changes.

When to Use

User needs Apple Pay for checkout, subscriptions, or wallet-first conversion improvements. Agent handles architecture choice, merchant setup, token safety, launch validation, and post-launch operations.

Architecture

Memory lives in ~/apple-pay/. See memory-template.md for setup and status fields.

~/apple-pay/
|-- memory.md                 # Project snapshot, risk status, and rollout state
|-- implementations.md        # Selected approach and platform notes
|-- validation-log.md         # Test evidence and environment results
`-- incidents.md              # Failed payments, root causes, and fixes

Quick Reference

Use the smallest relevant file for the current task.

TopicFile
Setup flowsetup.md
Memory templatememory-template.md
Implementation planimplementation-playbook.md
Validation matrixvalidation-checklist.md
Failure recoveryfailure-handling.md
Release and operationslaunch-playbook.md
Recurring and subscription flowsrecurring-payments.md

Requirements

  • Environment variable: APPLE_PAY_MERCHANT_ID
  • CLI tools for diagnostics: curl, jq
  • Access to Apple merchant account assets for the target environment

Never ask users to paste private keys or full certificate private material into chat.

Data Storage

Local notes stay under ~/apple-pay/:

  • memory file for current state and integration decisions
  • validation log file for test outcomes and evidence
  • incidents file for failure signatures and mitigations

Core Rules

1. Confirm Business Goal Before Choosing Integration Path

Start by identifying the target outcome:

  • Higher checkout conversion
  • Faster repeat purchases
  • Cleaner mobile payment UX
  • Lower payment failures

Then choose one primary path:

  • Web with Apple Pay JS and merchant session backend
  • Native iOS with PassKit
  • PSP-mediated integration (for example Stripe, Adyen, Braintree)

Do not mix paths in one patch unless user asks for a migration plan.

2. Require Merchant and Domain Prerequisites

Before implementation, confirm:

  • Merchant ID exists and matches target environment
  • Payment processing certificate exists and is valid
  • Domain association file is hosted and reachable for web
  • Sandbox and production credentials are separated

If any prerequisite is missing, pause coding and produce a concrete prerequisite checklist.

3. Enforce Server Truth for Amounts and Currency

Amounts and currency must match across:

  • Client request payload
  • Server-side cart or order totals
  • PSP authorization and capture calls

Never trust client totals for final charge amount.

Metadata

Stars2190
Views0
Updated2026-03-07
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-ivangdavila-apple-pay": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.