[TYPO3-commerce] question about new PAYMENT article

Bas van der Togt bas.vander.togt at efocus.nl
Tue Mar 11 12:28:01 CET 2008


Hello list,

Last week i build a new payment extension for commerce.
With this extension it's possible to handle almost every payment in The 
Netherlands. I will make this extension plublic soon.

In my commerce extension i have two different payment articles; Ogone 
and prepayment. When selecting prepayment it's always using the ogone 
class. It has to use the prepayment class. Does anybody know how to 
solve this problem?

My localconf of my payment extesion:

$TYPO3_CONF_VARS['EXTCONF']['commerce']['SYSPRODUCTS']['PAYMENT']['types']['ogone'] 
= array (
	'path' => t3lib_extmgm::extPath('ef_ogone') .'lib/class.tx_efogone.php',
	'class' => 'tx_efogone',
	'type'=> 2,
);

// Hook in a class to handle the CheckoutSteps hook. This hook can also 
be used
// to do other things of course.
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi3/class.tx_commerce_pi3.php']['init'][] 
= t3lib_extmgm::extPath('ef_ogone') .'lib/class.tx_efogone.php:tx_efogone';

// Hook in a class to handle the current step hook, currently we don't 
use an
// extra step.
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi3/class.tx_commerce_pi3.php']['main'][] 
= t3lib_extmgm::extPath('ef_ogone') .'lib/class.tx_efogone.php:tx_efogone';

// Hook in a class to handle the getBillingAddress hook
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi3/class.tx_commerce_pi3.php']['getBillingAddress'][] 
= t3lib_extmgm::extPath('ef_ogone') .'lib/class.tx_efogone.php:tx_efogone';

// Hook in a class to handle the getDeliveryAddress hook
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi3/class.tx_commerce_pi3.php']['getDeliveryAddress'][] 
= t3lib_extmgm::extPath('ef_ogone') .'lib/class.tx_efogone.php:tx_efogone';

// Hook in a class to handle the getListing hook
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi3/class.tx_commerce_pi3.php']['getListing'][] 
= t3lib_extmgm::extPath('ef_ogone') .'lib/class.tx_efogone.php:tx_efogone';

// Hook in a class to handle extra markers for the payment step
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi3/class.tx_commerce_pi3.php']['handlePayment'][] 
= t3lib_extmgm::extPath('ef_ogone') .'lib/class.tx_efogone.php:tx_efogone';

// Hook in a class to handle payment
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['commerce/pi3/class.tx_commerce_pi3.php']['finishIt'][] 
= t3lib_extmgm::extPath('ef_ogone') .'lib/class.tx_efogone.php:tx_efogone';


More information about the TYPO3-project-commerce mailing list