eway payment gateway

Posts: 2
Joined: 09/19/2007

Hi there,

I have managed to add modules/configure them if need be and in some cases edit some to fit in the store, but I am having massive problems finding a payment gateway to work with Ubercart that are aligned with my needs.

I am based in Australia and need the eway payment gateway to work. I know that there is an eway module available for the e-commerce module of drupal. But the e-commerce add-on is no ubercart and I don't want to use it, plus I have already gone past the point of return development wise with Ubercart.

Is there anyway possible to edit the eway module to fit with Ubercart?? I am willing to do what I can, but I am still a noobie!

Any information at all would be much appreciated.

Kind Regards,

Baz

Posts: 4116
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Hey Baz, hung out with some Aussies at the Drupalcon just last week. Smiling Regarding the payment gateway, it may be possible to simply port over what's been done for the e-commerce integration or put up a bounty for it. The payment API is documented pretty well, and you can always base your off another existing payment gateway module like uc_authorizenet.module or something else.

Posts: 40
Joined: 10/10/2007

Howdy,

I've written a module to work with eWAY. It's still in a pretty much untested state, as i've only been able to use eWAY's test server.

I still have to iron out some issues relating to the payment process not adding comments to the sale. I can't test it further as I don't have access to a valid eWAY account.

I'm going to write a new one for eMatters, as I've heard better things about them.

Before eMatters, however, i'm going to write a shipping module that uses Australia Post's online delivery rate calculator.

Cheers,

Daniel

ChrisB (not verified)

Hi Daniel.

Any chance you'd be willing to share your code?

Thanks,

Chris

Posts: 40
Joined: 10/10/2007

Sorry mate, only just saw your question now.

I'll dig up the code that i've made so far. From what I recall it's too hard to test against eway's servers as they don't give the same responses as if you were making a proper query.

Once i'm finished with this Australia Post module i'll have another look at it.

Cheers,

Daniel

Posts: 2
Joined: 12/29/2007

any more news about an eway module? i'm working on a site for a client who uses eway and would love to know if anyone has created a module for ubercart yet, since i've wasted too many hours trying to get the e-commerce module to work and think ubercart is definitely the way to go.

Posts: 40
Joined: 10/10/2007

I seem to have misplaced the files, so I'm going to write it again.

Scratch that. I found the module.

Posts: 40
Joined: 10/10/2007

Here's what i've got so far.
I've posted it up as a contribution: http://www.ubercart.org/contrib/2650

As I mention on the contribution page, I have only been able to test against eWay's test server, not the live one - as I don't have access to a valid account yet.

Successful payment invokes the w-ng event "eway_payment_processed", so you can use that in custom workflows if you like. It then uses the existing action from the Order module "uc_order_action_update_status", to update the status of the order.

It doesn't yet check to see that the order balance is actually 0, as I have yet to figure that out via w-ng. This means that if you have "process payments at checkout" turned on, a partial payment will mark the status as payment received anyway.

I've also added the localisation template, not that anyone's likely to need it - but it's an easier way of making customisations to the text than hacking the .module file.

Anyone else had a chance to test it yet? I haven't had any feedback on it yet.

Cheers,

Daniel