nodets_simple_pay
v1.0.0
Published
Node.js SDK for SimplePay.hu payment API.
Downloads
4
Maintainers
Readme
simplepay-node
Node.js SDK for SimplePay.hu payment API
Features
- Start, finish, refund, and query payments
- Card management
- IPN processing
- TypeScript support
Installation
npm install simplepay-nodeUsage
import { Simplepay } from "simplepay-node";
const simplepay = new Simplepay(
"MERCHANT_ID",
"SECRET_KEY",
"https://yourdomain.com/back",
true // sandbox mode
);
// Start a payment
const result = await simplepay.start(
"ORDER_REF",
"HUF",
"[email protected]",
"HU",
["CARD"],
{},
"1000",
[]
);
console.log(result);API
See src/index.ts for all available methods and parameters.
Development
npm install
npm run buildPublishing
- Update your GitHub username in
package.json. - Commit and push to a public GitHub repo.
- Run
npm publish.
License
MIT
