Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@luchalupa/csobcz_payment_gateway

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luchalupa/csobcz_payment_gateway - npm Package Compare versions

Comparing version 0.6.4 to 0.6.5

2

build/index.d.ts

@@ -10,3 +10,3 @@ import { Currency, InitPayload, InputPayload, Language, OneClickPaymentInput, PaymentResult, PaymentStatus, ResultCode } from './types/Payment';

constructor(config: Config);
init(payload: InitPayload): Promise<PaymentResult>;
init(input: InitPayload): Promise<PaymentResult>;
oneClickPayment(input: OneClickPaymentInput): Promise<PaymentResult>;

@@ -13,0 +13,0 @@ createPaymentPayload(payload: InputPayload, oneClick: boolean): any;

@@ -37,4 +37,7 @@ "use strict";

}
async init(payload) {
async init(input) {
try {
const payload = input;
payload['merchantId'] = this.config.merchantId;
payload['dttm'] = this.createDttm();
payload['signature'] = this.sign(this.createPayloadMessage(payload));

@@ -41,0 +44,0 @@ const result = await superagent

import Logger from 'bunyan';
export interface Config {
gateUrl?: string;
privateKey?: string;
merchantPublicKey?: string;
bankPublicKey?: string;
calbackUrl?: string;
merchantId?: string;
gateUrl: string;
privateKey: string;
merchantPublicKey: string;
bankPublicKey: string;
calbackUrl: string;
merchantId: string;
logger: Logger;
payloadTemplate?: Object;
}

@@ -27,3 +27,10 @@ import { Item } from './Order';

CZK = "CZK",
USD = "USD"
USD = "USD",
EUR = "EUR",
GBP = "GBP",
HUF = "HUF",
PLN = "PLN",
RON = "RON",
NOK = "NOK",
SEK = "SEK"
}

@@ -42,6 +49,8 @@ export declare enum ReturnMethod {

PAYMENT = "payment",
ONE_CLICK_PAYMENT = "oneclickPayment"
ONE_CLICK_PAYMENT = "oneclickPayment",
CUSTOM_PAYMENT = "customPayment"
}
export declare enum PaymentMethod {
CARD = "card"
CARD = "card",
CARD_LVP = "card#LVP"
}

@@ -73,10 +82,9 @@ export interface PaymentResult {

export interface InitPayload {
merchantId: string;
orderNo: string;
dttm: string;
payOperation: PaymentOperation;
payMethod: PaymentMethod;
payOperation?: PaymentOperation;
payMethod?: PaymentMethod;
totalAmount: number;
currency: Currency;
closePayment: boolean;
closePayment?: boolean;
customerId?: string;
returnUrl: string;

@@ -83,0 +91,0 @@ returnMethod: ReturnMethod;

@@ -32,2 +32,9 @@ "use strict";

Currency["USD"] = "USD";
Currency["EUR"] = "EUR";
Currency["GBP"] = "GBP";
Currency["HUF"] = "HUF";
Currency["PLN"] = "PLN";
Currency["RON"] = "RON";
Currency["NOK"] = "NOK";
Currency["SEK"] = "SEK";
})(Currency = exports.Currency || (exports.Currency = {}));

@@ -50,2 +57,3 @@ var ReturnMethod;

PaymentOperation["ONE_CLICK_PAYMENT"] = "oneclickPayment";
PaymentOperation["CUSTOM_PAYMENT"] = "customPayment";
})(PaymentOperation = exports.PaymentOperation || (exports.PaymentOperation = {}));

@@ -55,3 +63,4 @@ var PaymentMethod;

PaymentMethod["CARD"] = "card";
PaymentMethod["CARD_LVP"] = "card#LVP";
})(PaymentMethod = exports.PaymentMethod || (exports.PaymentMethod = {}));
//# sourceMappingURL=Payment.js.map
{
"name": "@luchalupa/csobcz_payment_gateway",
"version": "0.6.4",
"version": "0.6.5",
"description": "CSOB CZ payment gateway module",

@@ -5,0 +5,0 @@ "main": "build/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc