[Typo3-shop] Set a payment with a bank gateway
gueho_fred
gueho_fred at yahoo.fr
Fri Oct 28 01:18:46 CEST 2005
Thank you for your reply.
I tried something more personal and it's working. :)
But I have a problem with the accepturl.
When I am redirected to my site by the bank, the shopping cart is still full
of products !
Here is my accepturl :
http://www.mysite.com/index.php?id=36&backPID=36&products_cmd=accept&products_finalize=1&FE_SESSION_KEY=".rawurlencode($GLOBALS['TSFE']->fe_user->id.'-'.md5($GLOBALS['TSFE']->fe_user->id.'/'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']));
(the tt_products page is : id=36)
What did I do wrong ?
Thanks.
Fred
"Franz Holzinger" <franz at fholzinger.com> a écrit dans le message de news:
mailman.1.1130449238.4172.typo3-project-tt-products at lists.netfielders.de...
> gueho_fred a écrit :
>> No idea ? :)
>>
>>
> Hello Fred,
>
> use the tt_products/pi/payment_DIBS.php file, copy it to another name and
> adapt the lines starting from
>
> $products_cmd = t3lib_div::_GP('products_cmd');
> switch($products_cmd) {
> case "cardno":
> $tSubpart = $lConf['soloe'] ? '###DIBS_SOLOE_TEMPLATE###' :
> '###DIBS_CARDNO_TEMPLATE###'; // If solo-e is selected, use different
> subpart from template
> $tSubpart = $lConf['direct'] ? '###DIBS_DIRECT_TEMPLATE###' : $tSubpart;
> // If direct is selected, use different subpart from template
>
> $content=tx_ttproducts_basket_div::getBasket($this,$tSubpart,$localTemplateCode);
> // This not only gets the output but also calculates the basket total, so
> it's NECESSARY!
>
> $markerArray=array();
> $markerArray['###HIDDEN_FIELDS###'] = '
> <input type="hidden" name="merchant" value="'.$lConf['merchant'].'">
> ...
>
>
> to the needs of your bank.
>
> This should work then like in the description of the DIBS payment.
>
> Franz
More information about the TYPO3-project-tt-products
mailing list