Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My company required an Ubercart payment processor module for an online gateway (https://www.payway.com.au/), and no module previously existed, so we went ahead and wrote the code and wish to submit it back to the Drupal community.
Comment | File | Size | Author |
---|---|---|---|
#2 | uc_payway.zip | 2.31 KB | evanbarter |
#1 | uc_payway.zip | 2.28 KB | evanbarter |
Comments
Comment #1
evanbarter CreditAttribution: evanbarter commentedAdmittedly, some the code needs a bit of a style cleanup as it's based off some reference code which differs from the Drupal style guidelines.
There is also a dependency on a copyrighted API, which I assume I cannot include on Drupal.org, so the module should eventually include a README describing how to acquire this dependency.
Comment #2
evanbarter CreditAttribution: evanbarter commentedWhoops, disregard archive in #1, missed a semicolon.
Comment #3
apadernoHello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review your code, pointing out what needs to be changed.
As per http://drupal.org/cvs-application/requirements, the motivation message should be expanded to contain more details about the features of the proposed module, and it should include also a comparison with the existing solutions.
Comment #4
evanbarter CreditAttribution: evanbarter commentedForgive me, but I don't know what else to include in my motivation message given the simplicity of the module. Here it is padded out a bit:
This module implements the Ubercart hook hook_payment_gateway to allow a website that accepts credit cards with Ubercart to charge the card via the Westpac PayWay (https://www.payway.com.au/) API. It also provides a form for configuring the settings used to make the connection to the gateway.
There is currently no existing module which provides this functionality with this payment gateway, however the following modules provide comparable functionality with different (Australian) gateways:
Comment #5
apadernoI will review the code within 6 days from July 4.
Comment #6
spudette77 CreditAttribution: spudette77 commentedsubscribing... any update on how this module is going... I could really use it for my e-commerce store as we also use Westpac.
Comment #7
apadernohook_uninstall()
to remove the Drupal variables defined from the module.strlen()
andsubstr()
for strings that could contain Unicode strings (especially if they are gotten from a HTML form).There is a Drupal function that is used to load PHP code from a file.
Comment #8
apadernoComment #9
Nigel CunninghamReopening as I've been preparing to use this module and would like to see it become a 'proper' Drupal module. I can give some feedback regarding comment 7 and am willing to maintain a Drupal.org version if evan23 is not around/willing to do so:
1. hook_uninstall: Will fix.
2. strlen/substr: Could I get a pointer as to the correct processing to use? I've seen drupal_strlen, but am not sure what to use in place of substr. Is it possible to instead check they're not unicode or convert them from unicode (a credit card name and expiry are all that's involved).
3. The api file is provided by Westpac when they have checked the security of your site. It should not be provided as part of the module, though instructions for installing the file should be in a Readme.
Regards,
Nigel
Comment #10
Nigel CunninghamComment #11
DrunkMunki CreditAttribution: DrunkMunki commentedI would appreciate an active maintainer as I also would like a few fixes done, but this coding is way above my level.
I have posted the module also on http://www.ubercart.org/project/uc_payway because i couldnt find this thread when i downloaded it a while ago.
Few edits;
uc_payway_cert_file_path, uc_payway_ca_file_path,uc_payway_log_dir had to have absolute locations, couldnt find any code to replace location so instead of /sites/[all/default]/modules i had to use /home/username/public_html/sites/...
added the second line and referenced it in:
as the admin messages were displaying all cent values submitted as dollar values.
changed:
to
as it wasnt showing up in the admin messages
Current Issue
when a user clicks "back" on the review order page and updates details and resubmits it, it then generates a "Duplicate Transaction" error and wont go past the "review page", would love some help in addressing this issue.
Comment #12
apadernoApplying for full git access is different from applying for a CVS account, which is not supported anymore. See http://drupal.org/project/projectapplications.
Comment #14
sabweb CreditAttribution: sabweb commentedHi there, what is the status quo with this solution please?
Comment #15
xurizaemonThere's https://github.com/GiantRobot/uc_payway_net now for D7. I should post it as a project proper, had forgotten it existed until afestein reminded me just now!
Comment #15.0
apadernoSetting the comments to read-only.
Comment #16
apadernoComment #17
apadernoComment #18
apadernoPlease read the following links as this is very important information about CVS applications.