Paul, This extension is already meant to be seperate from eZAuthorize. The ezauthorize error mention was a typo and has been fixed, thanks for catching it.
Currently the class is very sparse, as most of the meat would be put in the classes that extend it. I wanted it to be more of a framework that I (and others of course) could use as a guide to implement curl payment gateways, like eZRedirectGateway is for redirect gateways, instead of a class that provided things like specific curl functionality.
I would certainly be open to suggestions though. Is there any functionality you see being generic enough to include as a method in eZCurlGateway? The one thing I don't really want to do is make it a wrapper for curl functions, as I prefer to leave it up to the developer to choose how he wants to implement the curl functions themselves. So for examples of using curl, I would recommend any developer to use the php manual (http://php.net/curl ), the official curl site (http://curl.haxx.se ), and to search for other open-source implementations of the payment gateway they are writing for to see what curl options they are using.
It was my intention that eZAuthorize be the concrete example. The trouble with doing curl examples is that you need a real curl interface to send and get information from, so I figured a "proof of concept" working example with a real gateway is going to be the best example to look at. Similarly, the stock class eZRedirectGateway doesn't redirect anywhere or create a payment object by itself, it needs to be told what object to create and where to go be an extending class. But by reading the ezpaypal class, it's relatively easy to figure out how and where these things need to be done.
Your right about the name though, the only thing curl has to do with this is it's name and purpose. Providing basic examples isn't going to change that, although if I get some extra time and a better feel for where people are encountering difficulties understanding how to implement a gateway using the class, I'll try to add some more in depth explanations. If you would like to create a gateway using this, I'm sure Graham and I would be more than happy to assist you with any specific questions you have.
like these kinds of code like implementations? <i>http://curl.haxx.se/libcurl/php/examples/simplepost.html</i>
gleam out some of the ezauthorize implementation specifics (supporting methods) backwards into ezcurlgateway ...
right now, it's more like a class you have only to override,
where it could have more functionality provided by the base class (<i>which could still be overridden</i>) as needed
what is curl? one of many different possible get/post operations via http an https, a url and a http uri formated parameter list?
We would luv to have more information about this gateway. I would really like to have users deal with my site only because i dont need validation for my users who i know already. All i need to do is to collect information about it via my site.
You must be logged in to post messages in this topic!