forked from verdnatura/hedera-web
TPV refactor
This commit is contained in:
parent
372bb33909
commit
f4372f8f5c
|
@ -1,4 +1,4 @@
|
||||||
hedera-web (1.405.55) stable; urgency=low
|
hedera-web (1.405.56) stable; urgency=low
|
||||||
|
|
||||||
* Initial Release.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ module.exports = new Class
|
||||||
batch.addValue ('transaction', this.tpvOrder);
|
batch.addValue ('transaction', this.tpvOrder);
|
||||||
batch.addValue ('status', this.tpvStatus);
|
batch.addValue ('status', this.tpvStatus);
|
||||||
|
|
||||||
var query = 'CALL transactionEnd (#transaction, #status)';
|
var query = 'CALL tpvTransactionEnd (#transaction, #status)';
|
||||||
this.conn.execQuery (query, null, batch);
|
this.conn.execQuery (query, null, batch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,8 +82,8 @@ module.exports = new Class
|
||||||
batch.addValue ('transaction', parseInt (this.tpvOrder));
|
batch.addValue ('transaction', parseInt (this.tpvOrder));
|
||||||
|
|
||||||
var query = 'SELECT t.amount, m.companyFk '
|
var query = 'SELECT t.amount, m.companyFk '
|
||||||
+'FROM tpv_transaction_view t '
|
+'FROM myTpvTransaction t '
|
||||||
+'JOIN tpvMerchant m ON m.id = t.merchant_id '
|
+'JOIN tpvMerchant m ON m.id = t.merchantFk '
|
||||||
+'WHERE t.id = #transaction';
|
+'WHERE t.id = #transaction';
|
||||||
this.conn.execQuery (query,
|
this.conn.execQuery (query,
|
||||||
this._onRetryPayDone.bind (this), batch);
|
this._onRetryPayDone.bind (this), batch);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hedera-web",
|
"name": "hedera-web",
|
||||||
"version": "1.405.55",
|
"version": "1.405.56",
|
||||||
"description": "Verdnatura web page",
|
"description": "Verdnatura web page",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -20,7 +20,7 @@ class Tpv
|
||||||
$error = NULL;
|
$error = NULL;
|
||||||
|
|
||||||
return $db->query (
|
return $db->query (
|
||||||
'CALL transactionConfirm (#, #, #, #, #, #)',
|
'CALL tpvTransactionConfirm (#, #, #, #, #, #)',
|
||||||
[
|
[
|
||||||
$params['Ds_Amount']
|
$params['Ds_Amount']
|
||||||
,$params['Ds_Order']
|
,$params['Ds_Order']
|
||||||
|
|
|
@ -12,7 +12,7 @@ class Transaction extends Vn\Web\JsonRequest
|
||||||
$amount = (int) $_REQUEST['amount'];
|
$amount = (int) $_REQUEST['amount'];
|
||||||
$companyId = empty ($_REQUEST['company']) ? NULL : $_REQUEST['company'];
|
$companyId = empty ($_REQUEST['company']) ? NULL : $_REQUEST['company'];
|
||||||
|
|
||||||
$row = $db->getObject ('CALL transactionStart (#, #)',
|
$row = $db->getObject ('CALL tpvTransactionStart (#, #)',
|
||||||
[$amount, $companyId]);
|
[$amount, $companyId]);
|
||||||
|
|
||||||
if (!isset ($row))
|
if (!isset ($row))
|
||||||
|
|
Loading…
Reference in New Issue