name: Google Pay slug: google-pay version: 1.0.0 homepage: https://clawic.com/skills/google-pay description: Implement Google Pay for web and Android with tokenization safety, gateway alignment, and production-ready checkout operations. changelog: Initial release with implementation, validation, launch, and incident response playbooks for Google Pay. metadata: {"clawdbot":{"emoji":"💳","requires":{"bins":["curl","jq"],"env":["GOOGLE_PAY_MERCHANT_ID"]},"os":["darwin","linux","win32"]}}
On first use, read setup.md and confirm platform, PSP, and release target before making code changes.
User needs Google Pay in checkout, subscriptions, or wallet-first conversion flows. Agent handles architecture decisions, tokenization mode, gateway integration, rollout validation, and post-launch operations.
Memory lives in ~/google-pay/. See memory-template.md for setup and status fields.
~/google-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 |
GOOGLE_PAY_MERCHANT_IDcurl, jqNever ask users to paste private keys, full token payloads, or PSP secrets into chat.
7w4.net小葱技能站,你的AI助手技能库。
Local notes stay under ~/google-pay/:
- memory file for current state and integration decisions
- validation log file for test outcomes and evidence
- incidents file for failure signatures and mitigations
Start by identifying the target outcome: - Higher mobile checkout conversion - Faster repeat purchases - Lower payment friction on Android and Chrome - Fewer payment failures
Then choose one primary path: - Web with Google Pay API and gateway tokenization - Android with Google Pay API in app flow - PSP-mediated integration path
Do not mix paths in one patch unless the user asks for a migration plan.
Before implementation, confirm: - Google Pay merchant profile exists for production - Gateway or PSP supports Google Pay in target countries - Test environment is isolated from production - Origin and app package configuration are correct
If prerequisites are missing, pause coding and produce a concrete prerequisite checklist.
Amounts and currency must match across: - Client payment data request - Server-side cart or order totals - PSP authorization and capture calls
Never trust client totals for final charge amount.
Treat Google Pay token payloads as sensitive: - Forward payload only to backend or PSP - Persist metadata only (request id, status, amount, currency) - Never store raw token payload in logs, notes, or screenshots
Use one clear tokenization mode per project:
- PAYMENT_GATEWAY for most integrations
- DIRECT only when user explicitly owns decryption and PCI scope
Do not mix tokenization modes without a documented migration and risk review.
Require idempotency and reconciliation for all critical calls: - Authorization request - Capture request - Refund or void operations
Every retried request must reuse stable idempotency keys to prevent duplicates.
Do not recommend production rollout until all gates pass: - Test success, decline, cancellation, and timeout paths are covered - Device and browser matrix is complete for supported audience - Fallback card or alternative checkout works when Google Pay is unavailable - Failure observability and alerts are active
isReadyToPay style capability checks -> broken wallet button behavior| Endpoint | Data Sent | Purpose |
|---|---|---|
| https://pay.google.com | Payment request and wallet flow payloads | Google Pay wallet interactions and client integration |
| https://pay.google.com/gp/p/js/pay.js | Script request metadata | Load Google Pay JavaScript client library |
| https://payments.developers.google.com | Documentation fetch traffic | Reference integration docs and test cards |
No other data should be sent externally unless the selected PSP requires it.
Data that leaves your machine: - Google Pay request payloads needed for wallet flow - Payment token payloads sent to configured PSP or backend
Data that stays local:
- Integration notes and rollout state under ~/google-pay/
- Validation evidence and failure logs without raw token payloads
This skill does NOT: - Store raw token payloads in memory files - Skip mandatory merchant and gateway requirements - Enable production release without explicit readiness checks
Google Pay integrations depend on Google infrastructure and the chosen PSP. Only install and run this skill if you trust those services and your payment backend.
Install with clawhub install <slug> if user confirms:
- payments - General payment design and checkout decision frameworks
- android - Android implementation and runtime troubleshooting patterns
- billing - Billing models, reconciliation, and payment lifecycle decisions
- auth - Authentication and session hardening in transaction flows
- api - Reliable backend API contracts and failure-safe integrations
clawhub star google-payclawhub sync这个技能整体质量较好,文档结构清晰、分类明确。它对安全性和稳定性考虑周全,提供了实用的防错指南和故障排查思路。适合需要严肃对待支付集成的开发者使用。主要不足是缺少具体操作示例,部分内容偏理论化,实际编码时可能还需要查阅官方文档补充细节。总体而言是一个可靠且经过思考的技能包。