Mobile Payment Integration Specialist
Expert in integrating mobile payments including Stripe, Apple Pay, Google Pay, in-app purchases, and subscription lifecycle management.
Activation Triggers
Activate on: "mobile payments", "Stripe SDK mobile", "Apple Pay integration", "Google Pay", "in-app purchase", "StoreKit 2", "Google Play Billing", "subscription management", "payment sheet", "RevenueCat"
NOT for: Backend payment processing → api-architect | General e-commerce → frontend-architect | Financial compliance → security-auditor
Quick Start
- Choose payment model — direct payments (Stripe) vs. in-app purchases (App Store/Play Store) based on product type
- Integrate payment SDK — Stripe Mobile SDK, StoreKit 2, or Google Play Billing Library
- Implement server-side verification — never trust client-side payment confirmations
- Handle subscription lifecycle — trials, renewals, cancellations, grace periods, upgrades
- Add Apple Pay / Google Pay — express checkout for returning customers
Core Capabilities
| Domain |
Technologies |
| Direct Payments |
Stripe Mobile SDK 23.x, Payment Sheet, Braintree |
| iOS IAP |
StoreKit 2, App Store Server API, Server Notifications V2 |
| Android IAP |
Google Play Billing 7.x, BillingClient, PurchaseFlow |
| Subscriptions |
RevenueCat, Superwall, Qonversion, custom server logic |
| Express Pay |
Apple Pay, Google Pay, Link (Stripe) |
Architecture Patterns
Payment Model Decision
What are you selling?
│
├─ Digital content consumed IN the app (stickers, coins, premium features)
│ └─ MUST use In-App Purchases (Apple/Google mandatory)
│ ├─ Apple: StoreKit 2 + App Store Server API
│ └─ Android: Google Play Billing Library
│
├─ Physical goods or real-world services (food, rides, consulting)
│ └─ CAN use direct payment (Stripe, Braintree)
│ └─ No 30% commission
│
└─ Reader/media apps (Netflix, Kindle, Spotify)
└─ CAN link to web for signup (US/EU/KR as of 2026)
└─ External purchase entitlement via App Store Server API
Stripe Payment Sheet (React Native)
import { useStripe } from '@stripe/stripe-react-native';
function CheckoutScreen({ amount }: { amount: number }) {
const { initPaymentSheet, presentPaymentSheet } = useStripe();
async function checkout() {
// 1. Create PaymentIntent on your server
const { clientSecret, ephemeralKey, customerId } = await api.post(
'/create-payment-intent',
{ amount, currency: 'usd' }
);
// 2. Initialize Payment Sheet
const { error: initError } = await initPaymentSheet({
merchantDisplayName: 'My Store',
paymentIntentClientSecret: clientSecret,
customerEphemeralKeySecret: ephemeralKey,
customerId,
applePay: { merchantCountryCode: 'US' },
googlePay: { merchantCountryCode: 'US', testEnv: __DEV__ },
defaultBillingDetails: { name: 'Jane Doe' },
});
if (initError) return handleError(initError);
// 3. Present Payment Sheet
const { error: payError } = await presentPaymentSheet();
if (payError) {
if (payError.code === 'Canceled') return; // User dismissed
handleError(payError);
} else {
// Payment succeeded — server confirms via webhook
navigation.navigate('OrderConfirmation');
}
}
return <Button title={`Pay $${amount}`} />;
}
StoreKit 2 Subscription Lifecycle
// Modern StoreKit 2 (async/await)
import StoreKit
class SubscriptionManager {
func purchase(_ product: Product) async throws -> Transaction {
let result = try await product.purchase()
switch result {
case .success(let verification):
let transaction = try checkVerified(verification)
await transaction.finish()
// Notify server of purchase for server-side validation
await api.verifyPurchase(transactionId: transaction.id)
return transaction
case .pending:
throw SubscriptionError.pendingApproval // Ask-to-Buy
case .userCancelled:
throw SubscriptionError.cancelled
@unknown default:
throw SubscriptionError.unknown
}
}
// Listen for subscription status changes
func observeTransactionUpdates() async {
for await result in Transaction.updates {
guard let transaction = try? checkVerified(result) else { continue }
await handleTransactionUpdate(transaction)
await transaction.finish()
}
}
}
Anti-Patterns
- Client-side payment verification — trusting the mobile app's report that payment succeeded. Always verify on the server via Stripe webhooks or App Store Server Notifications.
- Using In-App Purchase for physical goods — Apple and Google require IAP only for digital content consumed in-app. Physical goods, real-world services, and person-to-person payments should use Stripe/Braintree.
- Ignoring subscription grace period — when a renewal fails, Apple/Google grant a grace period. If you revoke access immediately, users churn unnecessarily.
- Not handling pending transactions — Ask-to-Buy (Family Sharing) results in pending state. Show a "pending approval" UI instead of failing.
- Hardcoded product IDs — product IDs and pricing embedded in the app. Fetch products from the store at runtime so pricing and availability can change without app updates.
Quality Checklist
[ ] Server-side payment verification via webhooks (never trust client)
[ ] Correct payment model chosen (IAP for digital, Stripe for physical)
[ ] Apple Pay and Google Pay configured as express checkout options
[ ] Subscription lifecycle handled: trial, renewal, cancellation, grace period
[ ] Pending transactions (Ask-to-Buy) handled gracefully
[ ] Product IDs fetched from store at runtime (not hardcoded)
[ ] Restore purchases implemented for app reinstalls
[ ] Receipt validation on server (App Store Server API / Google Developers API)
[ ] Refund handling via server notifications
[ ] Price displayed in user's local currency
[ ] Subscription management screen links to platform settings
[ ] PCI DSS compliance: no raw card data touches your servers (use Stripe tokenization)
1---2license: Apache-2.03name: mobile-payment-integration-specialist4description: "Mobile payment integration for Stripe, Apple Pay, Google Pay, in-app purchases, and subscription management. Activate on: mobile payments, Stripe SDK, Apple Pay, Google Pay, in-app purchase, StoreKit 2, Google Play Billing, subscription management, payment sheet. NOT for: backend payment processing (use api-architect), general e-commerce (use frontend-architect), financial compliance (use security-auditor)."5allowed-tools: Read,Write,Edit,Bash(docker:*,kubectl:*,terraform:*,npm:*,npx:*)6category: Mobile Development7tags:8 - payments9 - stripe10 - in-app-purchase11 - mobile12pairs-with:13 - skill: react-native-architect14 reason: Payment integration is a common React Native feature requirement15 - skill: mobile-biometric-auth-expert16 reason: High-value payments should require biometric confirmation17metadata:18 source: https://skillmd.com/skills/curiositech/mobile-payment-integration-specialist19---2021# Mobile Payment Integration Specialist2223Expert in integrating mobile payments including Stripe, Apple Pay, Google Pay, in-app purchases, and subscription lifecycle management.2425## Activation Triggers2627**Activate on:** "mobile payments", "Stripe SDK mobile", "Apple Pay integration", "Google Pay", "in-app purchase", "StoreKit 2", "Google Play Billing", "subscription management", "payment sheet", "RevenueCat"2829**NOT for:** Backend payment processing → `api-architect` | General e-commerce → `frontend-architect` | Financial compliance → `security-auditor`3031## Quick Start32331. **Choose payment model** — direct payments (Stripe) vs. in-app purchases (App Store/Play Store) based on product type342. **Integrate payment SDK** — Stripe Mobile SDK, StoreKit 2, or Google Play Billing Library353. **Implement server-side verification** — never trust client-side payment confirmations364. **Handle subscription lifecycle** — trials, renewals, cancellations, grace periods, upgrades375. **Add Apple Pay / Google Pay** — express checkout for returning customers3839## Core Capabilities4041| Domain | Technologies |42|--------|-------------|43| **Direct Payments** | Stripe Mobile SDK 23.x, Payment Sheet, Braintree |44| **iOS IAP** | StoreKit 2, App Store Server API, Server Notifications V2 |45| **Android IAP** | Google Play Billing 7.x, BillingClient, PurchaseFlow |46| **Subscriptions** | RevenueCat, Superwall, Qonversion, custom server logic |47| **Express Pay** | Apple Pay, Google Pay, Link (Stripe) |4849## Architecture Patterns5051### Payment Model Decision5253```54What are you selling?55 │56 ├─ Digital content consumed IN the app (stickers, coins, premium features)57 │ └─ MUST use In-App Purchases (Apple/Google mandatory)58 │ ├─ Apple: StoreKit 2 + App Store Server API59 │ └─ Android: Google Play Billing Library60 │61 ├─ Physical goods or real-world services (food, rides, consulting)62 │ └─ CAN use direct payment (Stripe, Braintree)63 │ └─ No 30% commission64 │65 └─ Reader/media apps (Netflix, Kindle, Spotify)66 └─ CAN link to web for signup (US/EU/KR as of 2026)67 └─ External purchase entitlement via App Store Server API68```6970### Stripe Payment Sheet (React Native)7172```typescript73import { useStripe } from '@stripe/stripe-react-native';7475function CheckoutScreen({ amount }: { amount: number }) {76 const { initPaymentSheet, presentPaymentSheet } = useStripe();7778 async function checkout() {79 // 1. Create PaymentIntent on your server80 const { clientSecret, ephemeralKey, customerId } = await api.post(81 '/create-payment-intent',82 { amount, currency: 'usd' }83 );8485 // 2. Initialize Payment Sheet86 const { error: initError } = await initPaymentSheet({87 merchantDisplayName: 'My Store',88 paymentIntentClientSecret: clientSecret,89 customerEphemeralKeySecret: ephemeralKey,90 customerId,91 applePay: { merchantCountryCode: 'US' },92 googlePay: { merchantCountryCode: 'US', testEnv: __DEV__ },93 defaultBillingDetails: { name: 'Jane Doe' },94 });9596 if (initError) return handleError(initError);9798 // 3. Present Payment Sheet99 const { error: payError } = await presentPaymentSheet();100101 if (payError) {102 if (payError.code === 'Canceled') return; // User dismissed103 handleError(payError);104 } else {105 // Payment succeeded — server confirms via webhook106 navigation.navigate('OrderConfirmation');107 }108 }109110 return <Button onPress={checkout} title={`Pay $${amount}`} />;111}112```113114### StoreKit 2 Subscription Lifecycle115116```swift117// Modern StoreKit 2 (async/await)118import StoreKit119120class SubscriptionManager {121 func purchase(_ product: Product) async throws -> Transaction {122 let result = try await product.purchase()123124 switch result {125 case .success(let verification):126 let transaction = try checkVerified(verification)127 await transaction.finish()128 // Notify server of purchase for server-side validation129 await api.verifyPurchase(transactionId: transaction.id)130 return transaction131132 case .pending:133 throw SubscriptionError.pendingApproval // Ask-to-Buy134135 case .userCancelled:136 throw SubscriptionError.cancelled137138 @unknown default:139 throw SubscriptionError.unknown140 }141 }142143 // Listen for subscription status changes144 func observeTransactionUpdates() async {145 for await result in Transaction.updates {146 guard let transaction = try? checkVerified(result) else { continue }147 await handleTransactionUpdate(transaction)148 await transaction.finish()149 }150 }151}152```153154## Anti-Patterns1551561. **Client-side payment verification** — trusting the mobile app's report that payment succeeded. Always verify on the server via Stripe webhooks or App Store Server Notifications.1572. **Using In-App Purchase for physical goods** — Apple and Google require IAP only for digital content consumed in-app. Physical goods, real-world services, and person-to-person payments should use Stripe/Braintree.1583. **Ignoring subscription grace period** — when a renewal fails, Apple/Google grant a grace period. If you revoke access immediately, users churn unnecessarily.1594. **Not handling pending transactions** — Ask-to-Buy (Family Sharing) results in pending state. Show a "pending approval" UI instead of failing.1605. **Hardcoded product IDs** — product IDs and pricing embedded in the app. Fetch products from the store at runtime so pricing and availability can change without app updates.161162## Quality Checklist163164```165[ ] Server-side payment verification via webhooks (never trust client)166[ ] Correct payment model chosen (IAP for digital, Stripe for physical)167[ ] Apple Pay and Google Pay configured as express checkout options168[ ] Subscription lifecycle handled: trial, renewal, cancellation, grace period169[ ] Pending transactions (Ask-to-Buy) handled gracefully170[ ] Product IDs fetched from store at runtime (not hardcoded)171[ ] Restore purchases implemented for app reinstalls172[ ] Receipt validation on server (App Store Server API / Google Developers API)173[ ] Refund handling via server notifications174[ ] Price displayed in user's local currency175[ ] Subscription management screen links to platform settings176[ ] PCI DSS compliance: no raw card data touches your servers (use Stripe tokenization)177```