Environment variables
The SDK reads process.env on every call. There is no other configuration.
| Variable | Required | Description |
|---|---|---|
SIMPLEPAY_MERCHANT_ID_HUF | for HUF | HUF merchant ID |
SIMPLEPAY_MERCHANT_KEY_HUF | for HUF | HUF secret key. cancelCard uses it too. |
SIMPLEPAY_MERCHANT_ID_HUF_SZEP | for SZÉP card | SZÉP card account merchant ID |
SIMPLEPAY_MERCHANT_KEY_HUF_SZEP | for SZÉP card | SZÉP card account secret key |
SIMPLEPAY_MERCHANT_ID_EUR | for EUR | EUR merchant ID |
SIMPLEPAY_MERCHANT_KEY_EUR | for EUR | EUR secret key |
SIMPLEPAY_MERCHANT_ID_USD | for USD | USD merchant ID |
SIMPLEPAY_MERCHANT_KEY_USD | for USD | USD secret key |
SIMPLEPAY_PRODUCTION | no | Exactly true calls the live API; anything else uses the sandbox. |
SIMPLEPAY_REDIRECT_URL | in production | Return URL. Must be absolute https in production. Sandbox falls back to http://url.to.redirect. |
SIMPLEPAY_LOGGER | no | true logs debug output to the console. Never logs keys or email addresses. |
API URLs
| Environment | Base URL |
|---|---|
| Sandbox | https://sandbox.simplepay.hu/payment/v2 |
| Production | https://secure.simplepay.hu/payment/v2 |
Endpoints the SDK calls: /start, /dorecurring, /cardcancel, /dogooglepay, /startapplepay, /doapplepay.
Details: Configuration.
