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.
Local notes stay under ~/google-pay/:
Start by identifying the target outcome:
Then choose one primary path:
Do not mix paths in one patch unless the user asks for a migration plan.
Before implementation, confirm:
If prerequisites are missing, pause coding and produce a concrete prerequisite checklist.
Amounts and currency must match across:
Never trust client totals for final charge amount.
Treat Google Pay token payloads as sensitive:
Use one clear tokenization mode per project:
PAYMENT_GATEWAY for most integrationsDIRECT only when user explicitly owns decryption and PCI scopeDo not mix tokenization modes without a documented migration and risk review.
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:
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:
Data that stays local:
~/google-pay/This skill does NOT:
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 if user confirms:
payments - General payment design and checkout decision frameworksandroid - Android implementation and runtime troubleshooting patternsbilling - Billing models, reconciliation, and payment lifecycle decisionsauth - Authentication and session hardening in transaction flowsapi - Reliable backend API contracts and failure-safe integrationsclawhub star google-payclawhub sync共 1 个版本