This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » Register payment gateway

Register payment gateway

Register payment gateway

Thursday 26 August 2010 1:12:13 pm - 5 replies


I have problem with my own payment gateway. I've used eZpayplal extension to help. After commenting and disabling almost everything that was in eZpaypal I have this code, which is still working (I can select Paypal gateway called 'Paypal'). I wrote almost the same code, but it doesn't work. (I can't select my gateway called 'DotPay').

This is rest of Paypal code:

define( "EZ_PAYMENT_GATEWAY_TYPE_PAYPAL", "ezpaypal" );
class eZPaypalGateway extends eZRedirectGateway
    function eZPaypalGateway()
            $this->logger   = eZPaymentLogger::CreateForAdd( "var/log/ambDotPayType.log" );
            $this->logger->writeTimedString( 'eZPaypalGateway::eZPaypalGateway()' );
eZPaymentGatewayType::registerGateway( EZ_PAYMENT_GATEWAY_TYPE_PAYPAL, "ezpaypalgateway", "Paypal" );

And this is my code:

define( "EZ_PAYMENT_GATEWAY_TYPE", "ezdotpay" );
class eZDotPayGateway extends eZRedirectGateway
    function eZDotPayGateway()
        $this->logger   = eZPaymentLogger::CreateForAdd( "var/log/eZDotPayGateway.log" );
        $this->logger->writeTimedString( 'eZDotPayGateway::eZDotPayGateway()' );
    function execute( $process, $event ) {
        return eZWorkflowType::STATUS_ACCEPTED;
eZPaymentGatewayType::registerGateway( EZ_PAYMENT_GATEWAY_TYPE, "ezdotpaygateway", "DotPay" );

I refresh autoload with the same result:

./bin/php/ezpgenerateautoloads.php -e -p

What is overlooked?

Thursday 26 August 2010 3:21:55 pm

After several hours of struggling I noticed that the name extension must be the same as the name of the class. It follows that each gateway must be a separate extension.

And even if one file is sufficient:


and class must then be of the same name.

So, now question is: Why have entries in workflow.ini.append.php no influence on it?

I mean:


Friday 27 August 2010 2:25:10 pm

OK, I found. There is another file to this: paymentgateways.ini

Monday 20 September 2010 10:16:04 am

Hey, seeing that almost a month has passed. How did you get on?

I too am looking at the payment gateway system and so far have concluded that the ezauthroize doesnt work. Which is backed up with the following insight.

I can see in your code you were just getting it to return a success, but did you manage to get the middle stage of communicating with paypal or creating a form for the user to fill out their details?

Friday 22 October 2010 2:28:42 am

Well Hello Chris,

I'm sorry but as a new eZ Community member you are sadly miss informed.

Any user who would take the time to read the latest svn trunk

for the ezauthorize extension would see that it is indeed

compatible with eZ Publish 4.x (4.1,4.2,4.3,4.4)

eZ Authorize does work, very well in fact. Use the latest version (from svn)!



Modified on Friday 22 October 2010 2:29:29 am by // Heath

Monday 25 October 2010 8:11:33 pm

Hi Chris,

Putting it in other words, understanding you might not be scanning the SVN repository of all extensions, you should give a try to the trunk Heath pointed to.

Let us know if this gets you up & running again,


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from