← 返回 Skills 市场
ivangdavila

Google Pay

作者 Iván · GitHub ↗ · v1.0.0
darwinlinuxwin32 ✓ 安全检测通过
279
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install google-pay
功能描述
Implement Google Pay for web and Android with tokenization safety, gateway alignment, and production-ready checkout operations.
使用说明 (SKILL.md)

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

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

  • Environment variable: GOOGLE_PAY_MERCHANT_ID
  • CLI tools for diagnostics: curl, jq
  • Access to Google Pay business console and target PSP account

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

Data Storage

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

Core Rules

1. Confirm Business Goal Before Choosing Integration Path

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.

2. Require Environment and Merchant Prerequisites

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.

3. Enforce Server Truth for Amounts and Currency

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.

4. Keep Token Handling Minimal and Auditable

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

5. Choose Tokenization Path Explicitly

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.

6. Build Idempotent and Recoverable Payment Steps

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.

7. Separate Test and Production Release Gates

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

Common Traps

  • Shipping test environment config to production -> checkout fails for live users
  • Mismatching gateway merchant ids across environments -> token processing errors
  • Skipping isReadyToPay style capability checks -> broken wallet button behavior
  • Trusting client totals -> mismatch between authorized and captured amounts
  • Missing idempotency on retries -> duplicate charges and refund overhead
  • Launching without fallback checkout -> conversion loss when wallet is unavailable

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:

  • 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

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

Install with clawhub install \x3Cslug> 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

Feedback

  • If useful: clawhub star google-pay
  • Stay updated: clawhub sync
安全使用建议
This skill is a documentation/playbook for implementing Google Pay and appears internally consistent. Before installing/use: 1) Confirm you are comfortable with the skill creating ~/google-pay and storing project notes there (it recommends chmod 700/600); 2) Ensure you only provide the GOOGLE_PAY_MERCHANT_ID (the skill does not require private keys or PSP secrets in chat); 3) Verify curl and jq are available for diagnostics if you expect the agent to run local checks; 4) Watch for any unexpected requests for secrets or pasting raw token payloads — the playbook explicitly forbids those actions; 5) If you have organizational policies about local storage of payment integration notes or evidence, choose an approved workspace or adjust file permissions accordingly.
功能分析
Type: OpenClaw Skill Name: google-pay Version: 1.0.0 The skill bundle is benign. All files, including markdown instructions for the AI agent, consistently emphasize secure practices, data integrity, and privacy. The `SKILL.md` explicitly lists legitimate external endpoints and states that raw token payloads are not stored locally or sent to unauthorized destinations. The `setup.md` file contains a `bash` script to create and set secure permissions (`chmod 700` for directory, `chmod 600` for files) for a local workspace (`~/google-pay/`), which is a standard and secure operation for local data management. There is no evidence of prompt injection, data exfiltration, malicious execution, or obfuscation.
能力评估
Purpose & Capability
Name/description, required env var (GOOGLE_PAY_MERCHANT_ID), and required binaries (curl, jq) are directly relevant to diagnosing and implementing Google Pay integrations. The requested access to a Google Pay business console and PSP account is expected for this purpose.
Instruction Scope
All runtime instructions are prose-only and limited to integration tasks: confirming merchant/PSP readiness, building plans, validation, and storing integration notes under ~/google-pay. This is within scope. Note: the skill instructs creating and persisting files in the user's home directory and setting file permissions (chmod 700/600). While sensible for local project notes, users should be aware these files remain on disk and may contain metadata about the integration.
Install Mechanism
Instruction-only skill with no install spec or remote downloads. This is low-risk — nothing is written or executed by an installer beyond the agent following textual instructions.
Credentials
Only one environment variable is required (GOOGLE_PAY_MERCHANT_ID) which is appropriate. The skill does not request unrelated credentials, secret keys, or config paths. It explicitly forbids asking users to paste private keys or raw token payloads into chat.
Persistence & Privilege
The skill persists project state under ~/google-pay and recommends file permissions to restrict access; it does not request always:true or system-wide configuration changes and does not modify other skills. Users should accept that notes and validation evidence (links, metadata) will be stored locally and ensure the chosen path and permissions meet their security policies.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install google-pay
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /google-pay 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release with implementation, validation, launch, and incident response playbooks for Google Pay.
元数据
Slug google-pay
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Google Pay 是什么?

Implement Google Pay for web and Android with tokenization safety, gateway alignment, and production-ready checkout operations. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 279 次。

如何安装 Google Pay?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install google-pay」即可一键安装,无需额外配置。

Google Pay 是免费的吗?

是的,Google Pay 完全免费(开源免费),可自由下载、安装和使用。

Google Pay 支持哪些平台?

Google Pay 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux, win32)。

谁开发了 Google Pay?

由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.0。

💬 留言讨论