Module needs review.
Chinapay is now widly used for e-comm. This is a gateway for Ubercart.
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | uc_chinapay-951788-16.patch | 4.37 KB | tim.plunkett |
| uc_chinapay.tar_.gz | 13.79 KB | hibersh |
Module needs review.
Chinapay is now widly used for e-comm. This is a gateway for Ubercart.
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | uc_chinapay-951788-16.patch | 4.37 KB | tim.plunkett |
| uc_chinapay.tar_.gz | 13.79 KB | hibersh |
Comments
Comment #1
hibersh commentedCVS edit link for hibersh
Comment #2
avpadernoHello, and thank you for applying for a CVS account. I am adding the review tags, and some volunteers will review the code, pointing out what it needs to be changed.
As per requirements, the motivation message should be expanded to contain more features of the proposed project. For themes, it should include also a screenshot of the theme, and (when possible) a link to a working demo site; for modules, it should include also a comparison with the existing solutions.
Comment #3
tr commentedComment #4
zzolo commentedHi. Please read all the following and the links provided as this is very important information about your CVS Application:
Drupal.org has moved from CVS to Git! This is a very significant change for the Drupal community and for your application. Please read the following documentation on how this affects and benefits you and the application process:
Migrating from CVS Applications to (Git) Full Project Applications
Comment #5
hibersh commentedmigrate to sandbox
# uc_chinapay
http://drupal.org/sandbox/hiber/1175188
# chartfield
http://drupal.org/sandbox/hiber/1080984
# commerce_alipay
http://drupal.org/sandbox/hiber/1170458
# commerce_chinapay
http://drupal.org/sandbox/hiber/1076856
# weibo
http://drupal.org/sandbox/hiber/1161220
Comment #6
hibersh commentedComment #7
sreynen commentedHi hibersh,
We only review one project as part of this application process. Which of your sandbox projects would you like us to review?
Comment #8
hibersh commentedHi sreynen,
# uc_chinapay ( ubercart payment api for Chinapay http://www.chinapay.com/)
http://drupal.org/sandbox/hiber/1175188
Regards
Comment #9
sreynen commentedHi hibersh,
Great, thanks. Ubercart modules often benefit from review by someone more familiar with Ubercart. I'm updating the title and adding a tag to make it a little easier for such people to find. As you've already seen, this can sometimes be a very slow process. Thanks for your patience.
You can't review your own application., but if you're willing, you can use your own Ubercart knowledge to help review other Ubercart applications, after reading the review guide.
Comment #10
jthorson commentedUpdating issue priority, as per the new application priority guidelines.
Comment #11
tr commentedBefore adding tags read the issue tag guidelines. http://drupal.org/node/1023102
Comment #12
rogical commentedsubscribe, hope to see the code in the sandbox version control.
Comment #13
hibersh commentedCode is available at sandbox, check http://drupalcode.org/sandbox/hiber/1175188.git/tree/refs/heads/master
Comment #14
ParisLiakos commentedComment #15
sreynen commentedI've avoided reviewing this because I think it would be better for someone with Ubercart expertise to review. But as no one with Ubercart expertise has come along, I went ahead and did a less-informed review. I found one minor issue. I think this is probably as close to a full review as we're going to get, so I'm marking this RTBC.
Comment #16
tim.plunkettThe file netpayclient.inc is full of non-namespaced functions, and looks like it could be a third party file. Please explain if you yourself wrote this file, and prefix all of the function names with
uc_chinapay_.As I've noted in a
@todo, thet()function isn't meant to take variables. You'll need to resolve this another way.Also, attached is a patch with some coding standards fixes.
Comment #17
hibersh commentedThanks for your review.
# "netpayclient.inc" is from Chinapay, was obfuscated before(not free-open). Maybe could be put at libraries. It is now not wrapped with a class or name_space to keep updated with Chinapay
# Payment title etc. settings are keep open to hook_form_alter, so there's no t($var) anymore
http://drupal.org/sandbox/hiber/1175188
Comment #18
tim.plunkettDo you have two accounts? http://drupal.org/node/1175188/committers
http://drupal.org/user/1341534
http://drupal.org/user/900646
You cannot include external libraries. You will have to either namespace those functions, or remove the file and provide adequate download instructions in the README.txt.
Comment #19
hibersh commented@tim.plunkett http://drupal.org/user/900646
D.O. take the committer from git name by mistake when commit without --author
Comment #20
tr commentedComment #21
hibersh commented@tim.plunkett
Comment #22
jthorson commentedCan you elaborate a bit more on your comment regarding netpayclient.inc file? I'm afraid I don't fully understand the licensing situation. Can end users download this file (or an obfuscated original that this was derived from) from ChinaPay? If so, what are ChinaPay's license terms? And if not, is this your code, or a 3rd party?
Because contributed modules are hosted on drupal.org's infrastructure, there can be legal implications assiciated with licensing of 3rd party code ... so as reviewers, we need to ensure we (and you) fully understand the licensing details associated with any given project before we can mark it RTBC.
Thanks in advance!
Comment #23
jthorson commentedComment #24
hibersh commented@jthorson I coded the netpayclient.inc(running on a live site), free use and change. RSA, algorithm for public-key cryptography is open.
Chinapay offical solution is made as PHP plugin or php-java bridge, kinda terrible. I've talked with them when built the e-com site, and they don't care whether I use their solution at all.
So is it OK to mark it as RTBC?
Thanks!
Comment #25
hibersh commentedComment #26
jthorson commentedhibersh,
Thanks for the response ... can the same be said of the ChinaPay logo? (i.e. Do you have rights to use the ChinaPay logo, and include it in a GPLv2 project?) I'm assuming that this would be a copyrighted image / registered trademark, and would likely require a release from ChinaPay before it could be included in the project bundle.
Comment #27
jthorson commentedI'm not familiar with ubercart, so I may be wrong ... but I wonder if it may not be more appropriate to use '#type' => 'value' instead of 'hidden' on line 153 of uc_chinapay.module, to prevent the fields from being output to the client browser.
Comment #28
jthorson commentedUsing the @ prefix will cause watchdog variables to be wrapped in a check_plain() automatically, so that
watchdog('chinapay', 'Receiving new order notification for order !order_id.', array('!order_id' => check_plain($_POST['Priv1'])));can be simplified as
watchdog('chinapay', 'Receiving new order notification for order @order_id.', array('@order_id' => $_POST['Priv1']));The README.txt file, netpayclient.inc @file docblock, and an answer to the Chinapay logo question in #26 are likely the only current showstoppers that I can see. That said, I don't know ubercart ... so the standard disclaimer applies.
On another note ... thanks for your patience and persistence with this module, and the review process in general!
Comment #29
hibersh commented@jthorson Thanks
[#26] The logo is designed to put in any e-commerce system to integrate with Chinapay payment gateway. I asked Chinapay, they said it's OK.
Comment #30
jthorson commentedLooks good ... key items in #28 answered or addressed, so let's push this through!
Comment #31
gregglesPlease take a moment to make your project page follow tips for a great project page.
Thanks for your contribution, hibersh! Welcome to the community of project contributors on drupal.org.
I've granted you the git vetted user role which will let you promote this to a full project and also create new projects as either sandbox or "full" projects depending on which you feel is best.
Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
As you continue to work on your module, keep in minde: Commit messages - providing history and credit and Release naming conventions.
Comment #32
gregglesugh, I keep forgetting this :(
Comment #33.0
(not verified) commentedadd sandbox link