[Typo3-shop] Set a payment with a bank gateway

Franz Holzinger franz at fholzinger.com
Thu Oct 27 23:41:10 CEST 2005


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