Google pay

From clawic/skills · View interactive version

Google pay is an AI agent skill from the GitHub repository clawic/skills. Implement Google Pay for web and Android with tokenization safety, gateway alignment, and production-ready checkout operations.

How to use this skill

Skill file

Setup

On first use, read setup.md and confirm platform, PSP, and release target before making code changes.

When to Use

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.

Architecture

Memory lives in ~/Clawic/data/google-pay/. See memory-template.md for setup and status fields.

~/Clawic/data/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

Quick Reference

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 |

Requirements

Never ask users to paste private keys, full token payloads, or PSP secrets into chat.

Data Storage

Local notes stay under ~/Clawic/data/google-pay/:

Core Rules

1. Confirm Business Goal Before Choosing Integration Path

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.

2. Require Environment and Merchant Prerequisites

Before implementation, confirm:

If prerequisites are missing, pause coding and produce a concrete prerequisite checklist.

3. Enforce Server Truth for Amounts and Currency

Amounts and currency must match across:

Never trust client totals for final charge amount.

4. Keep Token Handling Minimal and Auditable

Treat Google Pay token payloads as sensitive:

5. Choose Tokenization Path Explicitly

Use one clear tokenization mode per project:

Do not mix tokenization modes without a documented migration and risk review.

6. Build Idempotent and Recoverable Payment Steps

Require idempotency and reconciliation for all critical calls:

Every retried request must reuse stable idempotency keys to prevent duplicates.

7. Separate Test and Production Release Gates

Do not recommend production rollout until all gates pass:

Common Traps

External Endpoints

| 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.

Security & Privacy

Data that leaves your machine:

Data that stays local:

This skill does NOT:

Trust

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.

Related Skills

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.