csob-payment-gateway
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -105,2 +105,4 @@ "use strict"; | ||
const dttm = this._createDttm(); | ||
const apiUrl = `${url}/api/${this.getVersion()}${endpoint}${createGetPath && method === 'get' ? this._createGetPath(Object.assign({ merchantId }, data), dttm) : ''}`; | ||
console.log(apiUrl); | ||
return new Promise((resolve, reject) => { | ||
@@ -113,3 +115,3 @@ request[method]({ | ||
qs: method === 'get' ? data : undefined, | ||
url: `${url}/api/${this.getVersion()}${endpoint}${createGetPath && method === 'get' ? this._createGetPath(Object.assign({ merchantId }, data), dttm) : ''}`, | ||
url: apiUrl, | ||
}, (err, res, body) => { | ||
@@ -116,0 +118,0 @@ if (err) { |
@@ -1,2 +0,3 @@ | ||
import Gateway from './v1.7'; | ||
import Gateway, { PaymentStatus } from './v1.7'; | ||
export { PaymentStatus, }; | ||
export default Gateway; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const v1_7_1 = require("./v1.7"); | ||
exports.PaymentStatus = v1_7_1.PaymentStatus; | ||
exports.default = v1_7_1.default; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,4 @@ | ||
import { ICartItem, IEchoResponse, IOneClickInitResponse, IOneClickStartResponse, IPaymentInitResponse, IPaymentRefundResponse, IPaymentStatusResponse } from '../__interfaces__'; | ||
import { ICartItem, IEchoResponse, IOneClickInitResponse, IOneClickStartResponse, IPaymentInitResponse, IPaymentRefundResponse, IPaymentStatusResponse, PaymentStatus } from '../__interfaces__'; | ||
import Base, { Currency, Language, PayOperation } from '../base-gateway'; | ||
export { PaymentStatus, }; | ||
export default class Gateway extends Base { | ||
@@ -4,0 +5,0 @@ echo(): Promise<IEchoResponse>; |
@@ -12,2 +12,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const __interfaces__1 = require("../__interfaces__"); | ||
exports.PaymentStatus = __interfaces__1.PaymentStatus; | ||
const base_gateway_1 = require("../base-gateway"); | ||
@@ -14,0 +16,0 @@ class Gateway extends base_gateway_1.default { |
@@ -1,3 +0,4 @@ | ||
import { ICartItem, IEchoResponse, IOneClickEchoResponse, IOneClickInitResponse, IOneClickStartResponse, IPaymentInitResponse, IPaymentStatusResponse } from '../__interfaces__'; | ||
import { ICartItem, IEchoResponse, IOneClickEchoResponse, IOneClickInitResponse, IOneClickStartResponse, IPaymentInitResponse, IPaymentStatusResponse, PaymentStatus } from '../__interfaces__'; | ||
import Base, { Currency, Language, PayOperation } from '../base-gateway'; | ||
export { PaymentStatus, }; | ||
export default class Gateway extends Base { | ||
@@ -4,0 +5,0 @@ echo(): Promise<IEchoResponse>; |
@@ -12,2 +12,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const __interfaces__1 = require("../__interfaces__"); | ||
exports.PaymentStatus = __interfaces__1.PaymentStatus; | ||
const base_gateway_1 = require("../base-gateway"); | ||
@@ -14,0 +16,0 @@ class Gateway extends base_gateway_1.default { |
{ | ||
"name": "csob-payment-gateway", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Node.js implementation of CSOB payment gateway.", | ||
"main": "index.js", | ||
"types": "./dist/index.d.ts", | ||
"scripts": { | ||
@@ -7,0 +8,0 @@ "create_index": "run-script-os", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34646
488