Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9940ba2b
authored
Sep 21, 2017
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
TPV parametrized for real operation
parent
c0de9f55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
sails/src/assets/scripts/modules/student/controllers/tpvmodal.js
sails/src/config/pictogram.js
sails/src/assets/scripts/modules/student/controllers/tpvmodal.js
View file @
9940ba2b
...
...
@@ -26,7 +26,9 @@ dashboardControllers.controller('TPVModalCtrl', function (
})
.
success
(
function
(
data
,
status
,
headers
,
config
)
{
// 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_MERCHANTPARAMETERS" value="'
+
data
.
merchantParameters
+
'">'
+
'<input type="hidden" name="DS_SIGNATURE" value="'
+
data
.
signature
+
'">'
+
...
...
sails/src/config/pictogram.js
View file @
9940ba2b
...
...
@@ -33,7 +33,8 @@ module.exports.pictogram = {
oneYearEuro
:
70
,
// one year license in euros
},
merchantCode
:
'152038485'
,
// Code for Yotta
key
:
'sq7HjrUOBfKmC576ILgskD5srU870gJ7'
// key for signing
// key: 'sq7HjrUOBfKmC576ILgskD5srU870gJ7' // key for signing (test)
key
:
'l1ybhWRLO1RkWPrKXSXxDhAJGMuBFHCb'
// key for signing (real)
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment