TPV parametrized for real operation

parent c0de9f55
...@@ -26,7 +26,9 @@ dashboardControllers.controller('TPVModalCtrl', function ( ...@@ -26,7 +26,9 @@ dashboardControllers.controller('TPVModalCtrl', function (
}) })
.success(function(data, status, headers, config) { .success(function(data, status, headers, config) {
// Non-AJAX post to RedSys // Non-AJAX post to RedSys
var form = $('<form id="redsysform" action="https://sis-t.redsys.es:25443/sis/realizarPago" method="POST">' + // var redsysUrl = "https://sis-t.redsys.es:25443/sis/realizarPago"; // test
var redsysUrl = "https://sis.redsys.es/sis/realizarPago"; // real
var form = $('<form id="redsysform" action="' + redsysUrl + '" method="POST">' +
'<input type="hidden" name="DS_SIGNATUREVERSION" value="' + data.signatureVersion + '">' + '<input type="hidden" name="DS_SIGNATUREVERSION" value="' + data.signatureVersion + '">' +
'<input type="hidden" name="DS_MERCHANTPARAMETERS" value="' + data.merchantParameters + '">' + '<input type="hidden" name="DS_MERCHANTPARAMETERS" value="' + data.merchantParameters + '">' +
'<input type="hidden" name="DS_SIGNATURE" value="' + data.signature + '">' + '<input type="hidden" name="DS_SIGNATURE" value="' + data.signature + '">' +
......
...@@ -33,7 +33,8 @@ module.exports.pictogram = { ...@@ -33,7 +33,8 @@ module.exports.pictogram = {
oneYearEuro: 70, // one year license in euros oneYearEuro: 70, // one year license in euros
}, },
merchantCode: '152038485', // Code for Yotta merchantCode: '152038485', // Code for Yotta
key: 'sq7HjrUOBfKmC576ILgskD5srU870gJ7' // key for signing // key: 'sq7HjrUOBfKmC576ILgskD5srU870gJ7' // key for signing (test)
key: 'l1ybhWRLO1RkWPrKXSXxDhAJGMuBFHCb' // key for signing (real)
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment