Hi Ryan,

It would be great to see other NAB payment methods supported. NAB also provide Hosted Payment Page and Direct Post services. These methods may be preferable for small users who want to hand the security compliance issues over to the bank to deal with.

I have attached the integration guides for both methods. The bank reps seem to be pushing the hosted payment page but It would be good to hear thoughts on what would work best with commerce.

Cheers
B

Comments

BernieCram’s picture

Hi Ryan, I am progressing on this, I have a module mostly working. I will send you something soon just need to deal with the redirect back to commerce on completion from the NAB.

BernieCram’s picture

OK pretty much working just got to test it outside localhost and I'll put a file up that you can comment on.

B

BernieCram’s picture

StatusFileSize
new4.65 KB

Hi Ryan,

Here is the payment method module for NAB hosted payments which is working for me. I have put comments about the stuff that I have done to suit my workflow in the readme. It would be good to get some input on anything else which you think would be required. If it looks ok, it may be handy to provide as an additional option to the xml/api option for other drupal people in au.

Bernie

Ian Griffith’s picture

Bernie

Good evening from Eudlo QLD AUS.

Many thanks for this as I was having a devil of time serring up with standard NAB Transact as I am self taught Drupaler and have limited php experience. The notes were very self explanantory. I will let you know how it works with our store site. http://www.nambourhospitalflorist.com.au/. It is a small store and what you have said seems to suit us. I will try it out and get back to you shortly as to how it went.

Once again many thanks.

Cheers

Ian Griffith

Ian Griffith’s picture

Bernie

I appologise for this. I have tried to install the commerce_nab_hosted_payment

but get "Cannot extract temporary://commerce_nab_hosted_payment.tar_ (1).gz, not a valid archive." As this is the only way I have learnt to add a module can you please give me a hand.

Sorry to be a nusiance

Cheers

Ian Griffith

Ian Griffith’s picture

Bernie

I appologise once again for being a bit of a nusiance. I have followed your instructions and have managed to install the module another way. However when I try to get the module to work i get the the following

Fatal error: call to undefined function dpm() in home/www/au/com/nambourhospitalflorist/sites/all/modules/commerce_nab_hosted_payments.module on line 177.

I have followed your setting as they seem to suit me.

I don't have the tax ivoice module in though. Is this required

Any support is welcome

Cheers

Ian Griffith

larowlan’s picture

Hi Ian
dpm is a debug function provided by the devel module.
You can safely remove any lines containing dpm.
You might be able to catch bernie in irc in #drupal-au, he's normally online there.

Lee

Ian Griffith’s picture

Lee

Many many thanks.

I have been overwhealmed by the support that the Drupal Community shows us beginners.

Cheers

Ian G

larowlan’s picture

We were all beginners once!
There are quite a few Drupal experts in your part of the world (I'm just out of Bundaberg), if you head over to groups.drupal.org/australia and join up, you should get notifications of the regular Drupal meetup that's held in Brisbane every other month. It's a great chance to meet other Drupal users and soak up knowledge from their experiences.

BernieCram’s picture

Hi Ian,

Sorry have not been around much and missed your message. Did you get the module running?

You can edit the code in the .module file and comment out (or just delete) all the lines with dpm in them. There are a few of them because I was learning what happens at each stage as I went.

The file I attached was more for Ryan to have a look at than for use as is, normal release modules would have all that stuff taken out. Sorry.

I see that Lee chimed in, he's a champion and has helped me more than once, thanks!

Let me know if you are still struggling.

cheers
Bernie

Ian Griffith’s picture

Bernie

Based on Lee's advice and some careful reading I managed to get it to work quite well.

The only restriction I would place on it was that it won't work while NAB Transact is in Demo Mode. You have to get the NAB people to make "live" at their end while keeping it at "test mode" in the module till your happy.

I would also offer that in the Refund URL address you add as a prompt " ie http://www. as I fopund out tha the NAB code won't just accept "www......" from talking with their techies

Other than that the process is "smick"

So as it stands now just trying to get Comerce Email to send the shop an email with the complet order details but may have found out a solution with Commerce Emails Extras (sandbox project)

Many thanks for getting back

Cheers

Ian G

BernieCram’s picture

Good to hear Ian. There was something extra that the NAB had to do to actually activate demo mode for me as they are actually two different sections of your transact login. You then log in to the demo site to check that your transactions are coming through OK. Sounded to me like they don't activate something by default but that was second hand info someone from our accounts area was dealing with the NAB.

Credit also to sime for his input at the Melbourne mentoring and cafuego for irc input on getting this to work.

I did a bit of experimenting with the transaction emails and have ended up pretty happy with http://drupal.org/project/commerce_invoice_receipt I use it to send a tax invoice to the customer but there is no reason why you couldn't send the info to the store admin. It uses a customisable tpl.php file to control what info on the order is sent.

Lee helped (thanks once again) me add a preprocess function which pulls the payment transaction info into scope for the email. This allowed me to include the order balance in the email as well.

Cheers
Bernie

rcross’s picture

This still needs some work I think, but I made a few small tweaks and committed the module.

please log new issues that might be part of this

rcross’s picture

Component: Miscellaneous » Hosted Payments Module
Status: Active » Fixed

I've also added a component for the issues to be logged against.

I've cleaned up the dpms as well, so will consider this fixed for now.

Thanks Bernie.

BernieCram’s picture

Cool Thanks Ryan

B

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.