![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@luchalupa/csobcz_payment_gateway
Advanced tools
Source | Gateway documentation
Module for ČSOB CZ payment gateway, supports gateway version 1.9 (although not all features are yet implemented)
npm install @luchalupa/csobcz_payment_gateway
All keys are strings, for multiline env strings (certificates) check dotenv#rules.
variable name | description |
---|---|
GATEWAY_URL | payment gateway address |
MERCHANT_PRIVATE_KEY | merchant private key |
MERCHANT_PUBLIC_KEY | merchant public key |
BANK_PUBLIC_KEY | bank public key |
CALLBACK_URL | url called by gateway after payment |
MERCHANT_ID | merchant id from gateway provider |
Alternatively using config:
const { CSOBPaymentModule } = require('csobcz_payment_gateway');
const gateway = new CSOBPaymentModule({
logging: ...,
gateUrl: ...,
privateKey: ...,
merchantPublicKey: ...,
bankPublicKey: ...,
calbackUrl: ...,
merchantId: ...,
payloadTemplate: {}
})
Attribute logging
should be boolean
or function
used for debug info. By setting payloadTemplate
can by overwrited more init
method payload (see gateway config):
{
"merchantId": "...",
"payOperation": "payment",
"payMethod": "card",
"currency": "CZK",
"language": "CZ",
"returnUrl": "...",
"returnMethod": "POST"
}
status(string payId)
- returns payment statusinit(json payload)
- payment initgooglePayInit(json payload)
- GooglePay payment initapplePayInit(json payload)
- ApplePay payment initoneClickInit(json payload)
- OneClick payment initreverse(string payId)
- reverse payment with given payIdclose(string payId)
- close payment with given payIdrefund(string payId, int amount)
- refund payment with given payId, if
amount specified given amount is refundedecho(string method)
- echo test, method is either GET
or POST
(default)verifyResult(json payload)
- if success returns payload
else returns error,
payload is json returned from gateway callback.getRedirectUrl(string payId)
- returns url to gatewayprocessAppPayment("applepay" | "googlepay" type, string payId, object fingerprint)
- processes google or apple paymentprocessOneClickPayment(string payId)
- processes oneClick paymmentpayOrder(json order, boolean close, json options)
- wrapper for init and getRedirectUrl, close
params is closePayment
value, options
are merged into request payload
order example{
"id": "order1",
"description": "Moje order",
"items": [
{
"name": "Nákup: vasobchod.cz",
"quantity": 1,
"amount": 200,
"description": "Produkt 1"
}
]
}
allowed is 1-2 items.
getRedirectUrl(string payId)
- returns gateway url for redirectionAll methods returns Promise
when resolved is JSON
payload specified in
Gateway documentation only Extra methods returns custom payload. Reject is JS Error
.
payOrder
, getRedirectUrl
- returned JSON
{
"url": "https://api.platebnibrana.csob.cz/api/v1.7/payment/process/MERCHANDID/PAYID/20180504105513/KZr8D0z%2FVYFlX2fy0bs2NTafv...."
}
const gateway = require('csobcz_payment_gateway')
gateway
.echo('GET')
.then((result) => {
logger.log(result)
})
.catch((e) => {
logger.error(e)
})
FAQs
CSOB CZ payment gateway module
We found that @luchalupa/csobcz_payment_gateway demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.