Skip to main content
skill CX Codex

passkit — Claude Code skill: Apple Pay and Wallet

A PassKit skill that walks through Apple Pay buttons, payment requests and Wallet passes, and keeps the merchant setup in order.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill passkit -a claude-code
Open on GitHub

What passkit does

The skill covers an Apple Pay checkout on Swift from the first line to the token: the button, a PKPaymentRequest carrying the cart lines, presenting the sheet with PKPaymentAuthorizationController, then handing the result to your server. It is written against Swift 6.3 and iOS 26+. SwiftUI gets PayWithApplePayButton; UIKit gets PKPaymentButton. A custom control dressed up with the Apple Pay mark is out.

Setup comes before any code. Turn on the Apple Pay capability in Xcode, register a Merchant ID such as merchant.com.example.app in the Apple Developer portal, issue a Payment Processing Certificate, add the ID to entitlements. Skip the certificate and authorization fails.

One limit worth knowing up front: a single request holds one advanced mode only, be it recurring billing, automatic reload, deferred payment, Apple Pay Later eligibility or multi-token contexts. Two modes in one checkout means two requests. Amounts go in as NSDecimalNumber, never Double, and the last entry of paymentSummaryItems is what the sheet reads as the total.

What it helps with

  • add an Apple Pay button to a SwiftUI checkout screen
  • build a PKPaymentRequest with line items and a final total
  • collect a shipping address and email inside the payment sheet
  • register a merchant ID and payment processing certificate
  • surface a Wallet pass with PKAddPassesViewController

Example prompts for the agent

  • Add an Apple Pay buy button to the checkout view with PayWithApplePayButton.
  • Build a PKPaymentRequest with standard and express shipping methods.
  • Keep a strong reference to the PKPaymentAuthorizationController so the sheet stays up.

How to install passkit

1Skills CLI (Vercel)

npx skills add dpearson2699/swift-ios-skills --skill passkit -a claude-code

2Manually: put the files in place

~/.claude/skills/passkit/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/passkit/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about passkit

How do I install passkit in Claude Code?

Run npx skills add dpearson2699/swift-ios-skills --skill passkit -a claude-code. The skill file then sits at ~/.claude/skills/passkit/SKILL.md.

What does passkit do?

It explains Apple Pay checkout and Wallet passes in Swift: the button, the payment request, the sheet, authorization and merchant configuration.

Does passkit need a real merchant ID?

Yes. A Merchant ID from the Apple Developer portal plus a Payment Processing Certificate go into entitlements first, otherwise payment authorization cannot complete.

Similar skills

Everything for Mobile →

From the same set86

browserenginekit Guides work on alternative iOS and iPadOS browser engines with BrowserEngineKit. It covers web content, networking, rendering, and platform setup. CX Codex +1 3,000installs dockkit A skill for the DockKit framework: write Swift code that drives motorized docks and gimbals so the iPhone physically follows a subject. CX Codex +1 3,000installs audioaccessorykit Guides automatic audio switching setup for third-party Bluetooth headphones with AudioAccessoryKit on iOS 26.4+. Useful when companion apps and extensions handle accessory state. CX Codex +1 3,000installs ios-simulator This skill manages iOS Simulator with xcrun simctl, covering app launches, locations, permissions, logs, screenshots, and boot failure checks. CX Codex +1 3,000installs adattributionkit Guides Apple mobile developers through privacy-focused ad attribution in iOS 17.4+. Use it to register impressions, handle postbacks, and update conversion values. CX Codex +1 3,100installs paperkit This skill guides PaperKit markup integration in iOS apps, from an editable canvas to saved annotations. Use it when adding drawings, shapes, or text to documents. CX Codex +1 3,000installs financekit Walks an agent through FinanceKit and FinanceKitUI in a Swift app: Wallet accounts, balances, transactions, the transaction picker and orders. CX Codex +1 3,000installs app-store-optimization Structures App Store Connect metadata to improve organic search ranking and download conversion. It balances keywords across titles, subtitles, and the indexed keyword field. CX Codex +1 2,900installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor