Closed (fixed)
Project:
Commerce NAB Transact
Version:
7.x-1.x-dev
Component:
Hosted Payments Module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2012 at 07:31 UTC
Updated:
27 Dec 2012 at 04:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
BernieCram commentedHi 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.
Comment #2
BernieCram commentedOK pretty much working just got to test it outside localhost and I'll put a file up that you can comment on.
B
Comment #3
BernieCram commentedHi 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
Comment #4
Ian Griffith commentedBernie
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
Comment #5
Ian Griffith commentedBernie
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
Comment #6
Ian Griffith commentedBernie
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
Comment #7
larowlanHi 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
Comment #8
Ian Griffith commentedLee
Many many thanks.
I have been overwhealmed by the support that the Drupal Community shows us beginners.
Cheers
Ian G
Comment #9
larowlanWe 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.
Comment #10
BernieCram commentedHi 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
Comment #11
Ian Griffith commentedBernie
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
Comment #12
BernieCram commentedGood 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
Comment #13
rcross commentedThis 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
Comment #14
rcross commentedI'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.
Comment #15
BernieCram commentedCool Thanks Ryan
B