---
url: https://simplepay.webmania.cc/en/ai/agent-skill.md
description: >-
  Install the simplepay-js-sdk Agent Skill (npx skills add
  rrd108/simplepay-js-sdk) for Claude Code, Cursor and other AI coding agents.
---

# Agent Skill

The repo contains an [Agent Skill](https://skills.sh) (`skills/simplepay-js-sdk/SKILL.md`): a set of instructions for AI coding agents (Claude Code, Cursor, Codex and others) on wiring up SimplePay payments, IPN, recurring payments, Google Pay and Apple Pay with this package.

## Install

In your project root:

```bash
npx skills add rrd108/simplepay-js-sdk
```

The agent then loads the skill on its own when it works on a SimplePay integration. You can also ask for it, for example: “Add SimplePay payments using the simplepay-js-sdk skill”.

## What it covers

* installation and environment variables
* the three endpoints (start payment, back URL, IPN)
* Google Pay and Apple Pay buttons and server side
* recurring payments, token charges, card removal
* security rules (secret key, raw IPN body, idempotency)

## If the agent gets it wrong

These docs are written from the source code and are the reference. If the agent imports a function that doesn't exist (for example `getSimplePayConfig`), point it to this site or the [API reference](../reference/api). Full docs for agents: [llms.txt](./llms).
