@luchalupa/csobcz_payment_gateway
Advanced tools
Comparing version 0.7.3 to 0.7.4
@@ -78,2 +78,8 @@ "use strict"; | ||
var _a, _b, _c; | ||
console.log('---------------------------'); | ||
console.log('---------------------------'); | ||
console.log('PAYLOAD'); | ||
console.log(payload); | ||
console.log('---------------------------'); | ||
console.log('---------------------------'); | ||
try { | ||
@@ -83,2 +89,8 @@ const result = await superagent.post(`${this.config.gateUrl}${initUrlPath}`).send(payload); | ||
if (result.body.resultCode.toString() === '0') { | ||
console.log('---------------------------'); | ||
console.log('---------------------------'); | ||
console.log('INIT RESULT'); | ||
console.log(result.body); | ||
console.log('---------------------------'); | ||
console.log('---------------------------'); | ||
return result.body; | ||
@@ -150,4 +162,14 @@ } | ||
const url = `${this.config.gateUrl}/${type}/process`; | ||
console.log('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxPAYLOAD'); | ||
console.log('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxPAYLOAD'); | ||
console.log(payload); | ||
console.log('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxPAYLOAD'); | ||
console.log('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxPAYLOAD'); | ||
try { | ||
const result = await superagent.post(url).send(payload); | ||
console.log('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxRESULT'); | ||
console.log('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxRESULT'); | ||
console.log(result.body); | ||
console.log('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxRESULT'); | ||
console.log('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxRESULT'); | ||
if (this.verify(this.createResultMessage(result.body), result.body.signature)) { | ||
@@ -154,0 +176,0 @@ if (result.body.resultCode.toString() === '0') { |
{ | ||
"name": "@luchalupa/csobcz_payment_gateway", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "CSOB CZ payment gateway module", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
56953
851