Adds a payment method to Drupal Commerce to accept credit card payments through the Eurobank (a Greek bank) XML API (not redirection).
project link: http://drupal.org/sandbox/yannisc/1187292
| Comment | File | Size | Author |
|---|---|---|---|
| #32 | commerce_eurobank-1187352-32.patch | 16.45 KB | tim.plunkett |
Comments
Comment #1
jordojuice commentedHi yannisc,
Thank you for your contribution! Please remove LICENSE.txt from your module as well as any other licensing information. That will be added by git when your project is promoted.
Comment #2
yannisc commentedHello jordojuice!
Thanks for working with my project!
Please forgive my ignorance, this is my first project with Drupal.
I removed the LICENSE.txt.
Comment #3
jordojuice commentedOh, that's nothing! Very common mistake I assure you. Good luck on your application!
Screening cleared:
-
Has link to sandbox with module files-
Module duplicationNothing found. However, if there are any similar modules, part of the review process is to mention them and describe how your module is different.-
No LICENSE.txtremoved-
Has README.txtGood job on that one.Please be sure to run your module through the Coder module (http://drupal.org/project/coder) on minor (most) and review coding standards (http://drupal.org/coding-standards) for more information (though your module looks pretty close to standardized).
Comment #4
yannisc commentedI ran it through the coder module in minor mode.
I replaced the substr function with drupal_substr.
There is only one issue left: "use lowercase html tags to comply with XHTML", but this refers to the code that I actually send to Eurobank. I'm not sure it will work if I change this. So, could I leave it that way? It's not what the module generates in the site, but what it sends via curl to Eurobank API
Comment #5
jordojuice commentedWhen working with an external API, if the coding standards will break communication between your module and the API you certainly do not need to comply. As long as you have done what you can, if complying will cause issues then leave it how it is. Coding standards serve a purpose of promoting collaboration by making code uniformly understandable, but nothing is perfect! Thanks for the update!
Comment #6
yannisc commentedSo, when will the project get promoted? Is there something else I need to do?
Comment #7
jordojuice commentedWell, I only did a screening to check that your module was prepared for review. Since the queue is so long, we generally have been trying to shorten it by reviewing the applications that have been active the longest. Currently, many applications have been in the queue for over a month, so don't be discouraged if the process slows down. Someone will come along to complete the code review. The module may be tested, and we will check especially for secure coding practices and demonstrable knowledge of the Drupal API, as well as an ability to maintain projects through git and the issue queue on drupal.org. Once a reviewer feels your project demonstrates those abilities and all issues have been fixed they will mark it RTBC and a git administrator will come along and grant you the git vetted user role. Hope this helps!
Comment #8
yannisc commentedSo, I wait...
thank you very much!
Comment #9
jordojuice commentedPretty much! However, if you want to affect the backlog you are free to review other project applications. You can even join the project review group at http://groups.drupal.org/code-review or for information on how to review new project applications visit http://drupal.org/node/894256
Comment #10
yannisc commentedI'll check that jordojuice! Sounds interesting!
Comment #11
yannisc commentedHello! I didn't have any reviewers as of yet. Will someone help please?
Comment #12
yannisc commentedIt's almost two months since my initial application.
Should I do something else? Why is it taking so long? I think that discourages new members like me from participating in the community.
thank you,
Yannis
Comment #13
ParisLiakos commentedwell had you read the links posted on #9 you would have your issue set to critical..
I understand that it can be frustrating but as jordojuice noticed this process is run by volunteers.
if you dont like the waiting, then help;)
And finally, are you sure you run your module through coder set to minor ?
Comment #14
yannisc commentedrootatwc,
thank you for your answer.
I had read the links and saw the critical elevation on 4+ weeks, but I didn't know that I should change that status.
I know that this process is run by volunteers and I do want to help, but in this case, I can't as it is about my project and I think I cannot review my own project. I don't have the permissions anyhow.
Yes, I've run the code through coder set to minor and everything is ok.
Comment #15
ParisLiakos commentedI see.
But what i meant is that you could review/help with other issues so the other reviewers, have more time and review yours :)
about the coder, i run it vs your module and i got several indentation and space errors.
moreover, about coding standars.
should be like this
or use the ternary operator (more elegant and saves some lines)
Much more readable, don't you agree?
Also, inline commens like this
should be
please read this
Comment #16
yannisc commentedrootatwc, I'd like to start reviewing other modules, I just don't feel confident enough doing this yet.
Regarding the issues you mention, code review didn't show these issues to me even in the minor mode.
I fixed them though. Could you check and tell me if there is something else to fix?
thank you,
Yannis
Comment #17
ParisLiakos commentedUnderstood.
Yes i will, but you need to commit the changes and set the status back to needs review
EDIT: Do you use coder 7.x-1.x-dev version? (thats what i use and got the minor warnings)
Comment #18
yannisc commentedI just did that.
Comment #19
yannisc commentedI was running an older coder dev version. I updated to the latest one and rerun in minor mode. I only get the "lowercase" warning, which as I mentioned in previous comment and jordojuice agreed, should remain as it is.
Comment #20
ParisLiakos commentedlines 137 to 250 needs proper indentation and there are some control structures that still aren't according to drupal standards.
eg
wrong place for closing brackets:
wrong indentation:
wrong indentation again:
Comment #21
yannisc commentedWhy I don't get these errors with the coder module?
Comment #22
ParisLiakos commentedThose aren't by the coder module.
Those are by me:)
btw thats coder's output for me:
You should fix trailing spaces errors.you can leave the html ones be
Comment #23
yannisc commentedFor some reason, I don't get these errors with the coder.
I fixed the above errors, I hope everything is ok now.
Comment #24
yannisc commentedComment #25
yannisc commentedCould you please check if everything is ok now?
Comment #26
ParisLiakos commentedfrom the watchdog API documentation:
code like this :
should be:
replace the occuring instances.
from coding standards documentation:
code like this :
should be :
this provides better consistency and readability.
replace the occuring instances.
should be:
This will allow sending tranlated messages
You could make a function just for this and just call it to keep it cleaner and make it re-usable.
That's it..correct all the above ocuring instances, set the status back to needs review and if everything is ready i will set it to RTBTC
Comment #27
ParisLiakos commentedComment #28
yannisc commentedHello rootatwc!
I think I fixed all the above.
Please check.
thanks,
Yannis
Comment #29
ParisLiakos commentedHello yannis.
I checked and everything is ok.
Congrats!
I set it to RTBC, you will have to wait until a git administrator provides you with full project access
Comment #30
yannisc commentedYay!!
Thanks a lot!
Comment #31
yannisc commentedHello!
It's been 10 days since RTBTC, but the project is still in sandbox mode.
Is it normal? Should I do something else?
Comment #32
tim.plunkettHere is a final coding standards patch:
* End all comments with a full stop
* Comments should not exceed 80 chars
* Fixed indentation with switch/case
* In cases where readability is improved, use ternary assignment
* Use single quotes unless double quotes are needed
* Name of module in .info should match the project
* files[] in .info is only needed for files containing OO classes/interfaces
Once you commit this, mark the application back to RTBC and I will immediately grant you full project creation rights.
Thank you for your patience!
Comment #33
yannisc commentedThanks Tim!
I applied the patch!
Comment #34
tim.plunkettFor future commits, please read http://drupal.org/node/52287.
For example, that one could have been
Issue #1187352 by tim.plunkett: Coding standards fixes.I've granted you full project creation rights. Use this ability carefully!
Comment #35
yannisc commentedThank you Tim!
Comment #37
avpaderno