On first use, read setup.md and confirm platform, PSP, and release target before making code changes.
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.
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
Use the smallest relevant file for the current task.
| Topic | File |
|---|---|
| ------- | ------ |
| Setup flow | setup.md |
| Memory template | memory-template.md |
| Implementation plan | implementation-playbook.md |
| Validation matrix | validation-checklist.md |
| Failure recovery | failure-handling.md |
| Release and operations | launch-playbook.md |
| Recurring and subscription flows | recurring-payments.md |
APPLE_PAY_MERCHANT_IDcurl, jqNever ask users to paste private keys or full certificate private material into chat.
Local notes stay under ~/apple-pay/:
Start by identifying the target outcome:
Then choose one primary path:
Do not mix paths in one patch unless user asks for a migration plan.
Before implementation, confirm:
If any prerequisite is missing, pause coding and produce a concrete prerequisite checklist.
Amounts and currency must match across:
Never trust client totals for final charge amount.
Treat Apple Pay payment tokens as sensitive:
Require idempotency and reconciliation for all critical calls:
Every retried request must reuse stable idempotency keys to prevent duplicates.
Do not recommend production rollout until all gates pass:
For each implementation, include:
Prefer stable payment reliability over feature breadth.
| Endpoint | Data Sent | Purpose |
|---|---|---|
| ---------- | ----------- | --------- |
| https://apple-pay-gateway.apple.com | Merchant validation request payload | Establish merchant session for Apple Pay on the web |
| https://apple-pay-gateway-cert.apple.com | Merchant validation request payload (sandbox/cert path) | Validate merchant sessions in non-production environments |
| https://appleid.apple.com | Account and merchant auth metadata | Apple account and merchant identity operations |
No other data should be sent externally unless the selected PSP requires it.
Data that leaves your machine:
Data that stays local:
~/apple-pay/This skill does NOT:
Apple Pay integrations depend on Apple infrastructure and the chosen PSP.
Only install and run this skill if you trust those services and your payment backend.
Install with clawhub install if user confirms:
payments - General payment design and checkout decision frameworksapp-store-connect - Apple ecosystem account and operational workflowsios - iOS implementation and device-level debugging patternsauth - Authentication and session hardening in transaction flowsapi - Reliable backend API contracts and failure-safe integrationsclawhub star apple-payclawhub sync共 1 个版本