Franz Holzinger

Verse of the day

Und alles, was ihr tut mit Worten oder mit Werken, das tut alles in dem Namen des HERRN Jesu, und danket Gott und dem Vater durch ihn.
Kolosser 3:17

© Bible Gateway's Verse of the Day


Specific Gateway Extensions
 
 
Korrekturen
 
autor: Franz Holzinger Datum: 10-03-09 14:14:43
 
Hallo Micha,

dazu sind Korrekturen notwendig geworden, die bereits in 2.6.1 und in der Version unter jambage.com enthalten sind:

lib/class.tx_ttproducts_paymentlib.php


- $transactionDetailsArr = &$this->getTransactionDetails($confScript, $totalArr, $addrArr, $paymentBasketArray);
+ $transactionDetailsArr = &$this->getTransactionDetails($transactionId, $confScript, $totalArr, $addrArr, $paymentBasketArray);


- $providerObject->transaction_setOkPage ($transactionDetailsArr['successlink']);
- $providerObject->transaction_setErrorPage ($transactionDetailsArr['faillink']);
+ $providerObject->transaction_setOkPage ($transactionDetailsArr['transaction']['successlink']);
+ $providerObject->transaction_setErrorPage ($transactionDetailsArr['transaction']['faillink']);

-
- if (version_compare($this->pibase->version, '2.5.2', '==')) {
+ list($high,$medium) = sscanf($this->pibase->version,"%d.%d");
+ $version = $high.'.'.$medium;
+ if (version_compare($version, '2.5', '==')) {
$content=$this->basketView->getView($localTemplateCode,'PAYMENT', $this->info, false, false, '###PAYMENTLIB_FORM_TEMPLATE###',$markerArray);
- } else if (version_compare($this->pibase->version, '2.6.0', '==')) {
+ } else if (version_compare($version, '2.6', '==')) {

- function &getTransactionDetails(&$confScript, &$totalArr, &$addrArr, &$paymentBasketArray) {
+ function &getTransactionDetails($transactionId, &$confScript, &$totalArr, &$addrArr, &$paymentBasketArray) {
global $TSFE;

$param = '&FE_SESSION_KEY='.rawurlencode(
$TSFE->fe_user->id.'-'.
md5(
- $TSFE->fe_user->idcheckRequired.'/'.
- $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']
+ $TSFE->fe_user->idcheckRequired.'/'.
+ $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']
)
);
@@ -322,7 +312,10 @@
),
'total' => $totalArr,
'address' => $addrArr,
- 'basket' => $paymentBasketArray
+ 'basket' => $paymentBasketArray,
+ 'options' => array (
+ 'reference' => $transactionId,
+ )
);


Grüße
Franz