0
1
Fork 0

TPV refactor

This commit is contained in:
Juan Ferrer Toribio 2017-12-20 15:47:46 +01:00
parent 372bb33909
commit f4372f8f5c
5 changed files with 7 additions and 7 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.405.55) stable; urgency=low
hedera-web (1.405.56) stable; urgency=low
* Initial Release.

View File

@ -17,7 +17,7 @@ module.exports = new Class
batch.addValue ('transaction', this.tpvOrder);
batch.addValue ('status', this.tpvStatus);
var query = 'CALL transactionEnd (#transaction, #status)';
var query = 'CALL tpvTransactionEnd (#transaction, #status)';
this.conn.execQuery (query, null, batch);
}
@ -82,8 +82,8 @@ module.exports = new Class
batch.addValue ('transaction', parseInt (this.tpvOrder));
var query = 'SELECT t.amount, m.companyFk '
+'FROM tpv_transaction_view t '
+'JOIN tpvMerchant m ON m.id = t.merchant_id '
+'FROM myTpvTransaction t '
+'JOIN tpvMerchant m ON m.id = t.merchantFk '
+'WHERE t.id = #transaction';
this.conn.execQuery (query,
this._onRetryPayDone.bind (this), batch);

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "1.405.55",
"version": "1.405.56",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {

View File

@ -20,7 +20,7 @@ class Tpv
$error = NULL;
return $db->query (
'CALL transactionConfirm (#, #, #, #, #, #)',
'CALL tpvTransactionConfirm (#, #, #, #, #, #)',
[
$params['Ds_Amount']
,$params['Ds_Order']

View File

@ -12,7 +12,7 @@ class Transaction extends Vn\Web\JsonRequest
$amount = (int) $_REQUEST['amount'];
$companyId = empty ($_REQUEST['company']) ? NULL : $_REQUEST['company'];
$row = $db->getObject ('CALL transactionStart (#, #)',
$row = $db->getObject ('CALL tpvTransactionStart (#, #)',
[$amount, $companyId]);
if (!isset ($row))