Agent Skill
The repo contains an Agent Skill (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-sdkThe 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. Full docs for agents: llms.txt.
