eZCurlGateway

eZCurlGateway

Monday 12 December 2005 6:42:29 pm - 6 replies

Modified on Tuesday 13 December 2005 4:12:54 am by Brookins Consulting

Author Message

Paul Forsyth

Tuesday 13 December 2005 1:32:04 am

You should make this extension separate from eZAuthorise and provide examples of how to actually use curl.

For example, you mention ezauthorizegateway in an error statement, and only show curl in use within eZAuthorizeAIM of the other extension.

paul

Dylan McDiarmid

Tuesday 13 December 2005 2:50:29 am

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.

Cheers,
Dylan

Paul Forsyth

Tuesday 13 December 2005 2:59:47 am

I really do think you should have some concrete examples of how to instigate the curl connection and use the results in that extension.

As it stands the only part that uses curl in the extension is the name.

Paul

Dylan McDiarmid

Tuesday 13 December 2005 3:30:38 am

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.

kracker (the)

The Doctor

Tuesday 13 December 2005 3:38:19 am

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?

//kracker
<i>beastie boys | remote control</i>

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

john polo

Wednesday 25 January 2006 8:13:51 am

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!

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