You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 3, 2018. It is now read-only.
$this->log('Order ID "' . $this->Input->post('refno') . '" has NOT succeedet. UPP Transaction Id: ' . $this->Input->post('uppTransactionId'), __METHOD__, TL_ERROR);
57
+
return;
58
+
}
59
+
60
+
$objOrder = newIsotopeOrder();
61
+
62
+
if (!$objOrder->findBy('id', $this->Input->post('refno')))
63
+
{
64
+
$this->log('Order ID "' . $this->Input->post('refno') . '" not found', __METHOD__, TL_ERROR);
65
+
return;
66
+
}
67
+
68
+
// check if the details are okay
69
+
if ($this->Input->post('merchantId') == $this->datatrans_id)
70
+
{
71
+
// do the optional sign check
72
+
if ($this->datatrans_sign == 1)
73
+
{
74
+
if ($this->datatrans_sign_value != $this->Input->post('sign'))
75
+
{
76
+
$this->log('Call without a valid sign id', __METHOD__, TL_ERROR);
77
+
return;
78
+
}
79
+
}
80
+
81
+
// new in isotope 1.3
82
+
if (version_compare(ISO_VERSION, '0.2', '>'))
83
+
{
84
+
$objOrder->checkout();
85
+
}
86
+
87
+
$objOrder->date_payed = time();
88
+
$objOrder->save();
89
+
90
+
}
91
+
}
92
+
93
+
94
+
/**
95
+
* Check if the server to server check was sucessfull before we tag the order as payed
96
+
* @return bool
97
+
*/
98
+
publicfunctionprocessPayment()
99
+
{
100
+
$objOrder = newIsotopeOrder();
101
+
102
+
if (!$objOrder->findBy('cart_id', $this->Isotope->Cart->id))
103
+
{
104
+
$this->log('Cart ID "' . $this->Isotope->Cart->id . '" not found', __METHOD__, TL_ERROR);
$GLOBALS['TL_LANG']['tl_iso_payment_modules']['datatrans_id'] = array('Merchant-ID', 'Bitte geben Sie ihre Datatrans Merchant-ID ein.');
34
+
$GLOBALS['TL_LANG']['tl_iso_payment_modules']['datatrans_sign'] = array('sign Parameter', 'Aktivieren Sie diese Checkbox um einen "sign" Parameter zu verwenden.');
35
+
$GLOBALS['TL_LANG']['tl_iso_payment_modules']['datatrans_sign_value'] = array('sign Wert', 'Bitte geben Sie den gleichen "sign" Wert ein, wie in datatrans Control Panel.');
36
+
37
+
38
+
/**
39
+
* MSC
40
+
*/
41
+
$GLOBALS['TL_LANG']['tl_iso_payment_modules']['datatrans_label_pay'] = 'Jetzt mit Datatrans bezahlen';
0 commit comments