Skip to content

Commit

Permalink
ENC_PARAM will be moved to extra_payload in payment notificaton
Browse files Browse the repository at this point in the history
  • Loading branch information
kn9ts committed Sep 12, 2016
1 parent 765fb3f commit 211d766
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions server/controllers/PaymentSuccess.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ class PaymentSuccess {

const extractCode = statusCodes
.find(stc => stc.return_code === parseInt(response.return_code, 10));
Object.assign(response, extractCode);

console.log('PAYMENT NOTIFICATON from SAG');
console.log({ response });
Object.assign(response, extractCode);
// console.log('PAYMENT NOTIFICATON from SAG');
// console.log({ response });

const requestParams = {
method: 'POST',
Expand Down
2 changes: 0 additions & 2 deletions server/utils/GenEncryptedPassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@ module.exports = class GenEncryptedPassword {
const hash = crypto.createHash('sha256');
this.hashedPassword = hash.update(concatenatedString).digest('hex'); // or 'binary'
this.hashedPassword = new Buffer(this.hashedPassword).toString('base64');
// this.hashedPassword = this.hashedPassword.toUpperCase();
// console.log('hashedPassword ==> ', this.hashedPassword);
}
};
2 changes: 0 additions & 2 deletions server/utils/ParseResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ module.exports = class ParseResponse {

// Get the children tagName and its values
$(this.bodyTagName).children().each((i, el) => {
// if (el.children.length > 1) return;
if (el.children.length === 1) {
// console.log(el.name, el.children[0].data);
let value = el.children[0].data.replace(/\s{2,}/gi, ' ');
value = value.replace(/\n/gi, '').trim();
this.json[el.name] = value;
Expand Down
1 change: 1 addition & 0 deletions server/utils/ucFirst.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';
// ucFirst (typeof String):
// returns String with first character uppercased

module.exports = (string) => {
const word = string;
let ucFirstWord = '';
Expand Down

0 comments on commit 211d766

Please sign in to comment.