# SimplePay JS SDK (unofficial) > Unofficial Node.js / TypeScript SDK for SimplePay, the Hungarian payment gateway. Not affiliated with SimplePay Zrt. npm package: simplepay-js-sdk (ESM, Node.js 20+). Source: https://github.com/rrd108/simplepay-js-sdk. Every example here matches the exported API; functions not listed in the API reference do not exist. Hungarian versions of each page are at the same path without the /en prefix. ## Table of Contents - [Agent Skill – SimplePay integration with AI coding agents](https://simplepay.webmania.cc/en/ai/agent-skill.md): Install the simplepay-js-sdk Agent Skill (npx skills add rrd108/simplepay-js-sdk) for Claude Code, Cursor and other AI coding agents. - [API reference – simplepay-js-sdk functions](https://simplepay.webmania.cc/en/reference/api.md): Every exported simplepay-js-sdk function with parameters, return values and errors: startPayment, getPaymentResponse, handleIpnRequest, startRecurringPayment, startTokenPayment, cancelCard, getTransactionStatus, queryTransactions, refund, startGooglePay, startApplePay, doApplePay, renderGooglePayButton, renderApplePayButton. - [Apple Pay with SimplePay – merchant-hosted button in Node.js](https://simplepay.webmania.cc/en/guide/apple-pay.md): An Apple Pay button on your own page with SimplePay: domain registration, renderApplePayButton in the browser, startApplePay and doApplePay on the server. - [Configuration – SimplePay keys, sandbox and production](https://simplepay.webmania.cc/en/guide/configuration.md): Set the SimplePay merchant ID and secret key per currency (HUF, HUF_SZEP, EUR, USD) in environment variables; sandbox vs production, return URL and logging. - [Environment variables – simplepay-js-sdk](https://simplepay.webmania.cc/en/reference/environment.md): Every simplepay-js-sdk environment variable: SIMPLEPAY_MERCHANT_ID_*, SIMPLEPAY_MERCHANT_KEY_*, SIMPLEPAY_PRODUCTION, SIMPLEPAY_REDIRECT_URL, SIMPLEPAY_LOGGER. - [Getting started – SimplePay integration in Node.js](https://simplepay.webmania.cc/en/guide/getting-started.md): SimplePay Node.js integration step by step: install with npm, yarn or pnpm, set up merchant keys, run your first sandbox payment with simplepay-js-sdk. - [Google Pay with SimplePay – merchant-hosted button in Node.js](https://simplepay.webmania.cc/en/guide/google-pay.md): A Google Pay button on your own page with SimplePay: renderGooglePayButton in the browser, startGooglePay on the server, 3DS (3004) handling, Google Pay & Wallet Console setup. - [llms.txt, Markdown pages and Context7](https://simplepay.webmania.cc/en/ai/llms.md): simplepay-js-sdk documentation for AI agents and LLMs: llms.txt, llms-full.txt, Markdown per page and Context7. - [One-time payment with SimplePay in Node.js](https://simplepay.webmania.cc/en/guide/one-time-payment.md): Start a SimplePay one-time card or wire payment from Node.js with startPayment. Parameters, SZÉP card, currency, language, invoice, items, delivery, timeout, response and error handling. - [SimplePay back URL handling – the r and s parameters](https://simplepay.webmania.cc/en/guide/back-url.md): Verify the SimplePay back URL r and s parameters in Node.js with getPaymentResponse. Handle the SUCCESS, FAIL, TIMEOUT and CANCEL events. - [SimplePay error codes – causes and fixes](https://simplepay.webmania.cc/en/reference/errors.md): What SimplePay error codes mean and how to fix them (5100 invalid signature, 5321 format error, 5013 transaction exists, 3004 3DS, 2063 declined), plus the simplepay-js-sdk error messages. - [SimplePay Express integration in Node.js](https://simplepay.webmania.cc/en/recipes/express.md): SimplePay integration in an Express app: start a payment, handle the back URL, receive the IPN with the express.text() raw body. Full example code. - [SimplePay go-live checklist](https://simplepay.webmania.cc/en/guide/go-live.md): What to check before switching your SimplePay Node.js integration to production: keys, SIMPLEPAY_PRODUCTION, https return URL, IPN URL, logging, Google Pay and Apple Pay. - [SimplePay IPN handling and signature verification in Node.js](https://simplepay.webmania.cc/en/guide/ipn.md): SimplePay IPN endpoint in Node.js with handleIpnRequest: raw body, Signature header, receiveDate, signing the response, common mistakes (5100 invalid signature), multiple currencies, idempotency. - [SimplePay Next.js integration – App Router route handlers](https://simplepay.webmania.cc/en/recipes/nextjs.md): SimplePay integration with the Next.js App Router: start a payment in a route handler, verify the back URL in a server component, receive the IPN with request.text(). - [SimplePay Nuxt integration – Nitro server routes](https://simplepay.webmania.cc/en/recipes/nuxt.md): SimplePay integration in Nuxt 3 / Nuxt 4 with Nitro server routes: start a payment, handle the back URL, receive the IPN with readRawBody. Full example code. - [SimplePay recurring payments and card storage in Node.js](https://simplepay.webmania.cc/en/guide/recurring-payments.md): SimplePay recurring payments in Node.js: card registration with startRecurringPayment, storing tokens, charging a token with startTokenPayment, removing a card with cancelCard. - [SimplePay refunds and transaction queries](https://simplepay.webmania.cc/en/guide/refunds-and-queries.md): Full and partial refunds, transaction status and queries with the simplepay-js-sdk refund, getTransactionStatus and queryTransactions functions. - [SimplePay sandbox testing and test cards](https://simplepay.webmania.cc/en/guide/testing.md): SimplePay sandbox test cards (successful, failed, 3DS, SZÉP, card registration), testing the IPN locally, and using simplepay-js-sdk in unit tests. - [Types – simplepay-js-sdk TypeScript types](https://simplepay.webmania.cc/en/reference/types.md): simplepay-js-sdk TypeScript types from the source: PaymentData, RecurringPaymentData, TokenPaymentData, SimplePayResponse, SimplePayResult, SimplePayIPNResponse, TransactionStatus, Google Pay and Apple Pay types.