Installation
Requirements
- Node.js
>=18 - A package manager: npm, Yarn, or pnpm
- GoPay merchant credentials (
goid,clientId,clientSecret)
Install from npm
Use the package manager you already use in your app:Choose environment URLs
| Environment | gatewayUrl |
|---|---|
| Sandbox | https://gw.sandbox.gopay.com/api |
| Production | https://gate.gopay.cz/api |
The SDK normalizes
gatewayUrl (including trailing /api), so values like https://gw.sandbox.gopay.com are accepted.Verify the dependency
You should see
gopay-sdk@… with no extraneous dependency warnings for a clean install.First import check
Changelog
Version history ships with every release. After install, opennode_modules/gopay-sdk/CHANGELOG.md, or view the published file: CHANGELOG.md.