Need help with implementing my payment gateway in 3.9

Author Message

H-Works Agency

Tuesday 06 February 2007 6:52:46 am

I need to create a payment gateway that does this :

After confirm order page => display a form with the type of credit card the user wants to use : Visa, Mastercard...etc

By clicking the logo it will redirect the user to an external payment gateway.

After a classical payment routine the payment gateway is sending an automatic response to my site that will register the order or not + some payment datas (Transaction ID, AuthorizationID...etc)

Then my user is returning to my site.

How can i do this ?

In fact i have deeply studied all existing payment gateways/workflow for EZP but i can't find any clue :(

Should i use the new payment gateway structure or should i try to make a branch starting from shop/confirmorder ?

- I tried to use the payment gateway workflow thing but it look like it has to use a '$redirect_url' variable to send the user to the gateway and i don't have that in mine (user has to submit a form before being sent to the external gateway)

- How can i record additional datas into my order ? (Transaction ID, AuthorizationID, Tracking number...etc)

- What is a payment object in my db structure ?

This payment gateway is SIPS from Atos Origin. This product is used by all major french banks.

Thanx in advance for any help.

Martin

EZP is Great

/dev/null

Sunday 11 February 2007 4:56:09 pm

You should try using the 'eZRedirectGateway' class which supports redirection!
<i>http://pubsvn.ez.no/nextgen/trunk/kernel/shop/classes/ezredirectgateway.php</i>

eZ Paypal provides for much of this functionality.
<i>http://zev.ez.no/svn/extensions/ezpaypal
http://zev.ez.no/svn/extensions/ezpaypal/classes/ezpaypalgateway.php</i>

<i>/dev/null

tv: moral orel - god\'s image</i>

eZpedia community documentation project: http://ezpedia.org

H-Works Agency

Monday 12 February 2007 3:27:03 am

Thanx but i can't use redirection : My module has to provide the redirection through a card type form.

That is my problem.

EZP is Great

kracker (the)

Monday 12 February 2007 8:53:32 am

Well ...

That's reasonable enough. I would borrow ideas from the redirect gateway's implementation.

Adapt your gateway to use those ideas at the point where you return from your card type form submission, before the workflow event ends ... for starters.

It's going to take an experienced eZ / PHP developer to implement your own unique api's required php code into the workflow event to support (in effect) both feature sets of both types of payment gateway classes.

There really is no big secret in this area of eZ publish, you write a workflow event of type payment gateway, there are several examples in eZ publish itself and in other payment gateway extensions of how you can implement the code eZ publish needs to support these base features within eZ publish, the rest of the code needed is for your own api, you write to support your own payment gateway's api.

A redirect to a url is not much different from background curl request to a url...
This is an area for development not talk, no?

Cheers,
//kracker

<i>Sole - Selling Live Water - Respect Pt 3</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.