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.
The commerce_paystand module adds payment processing using PayStand to Drupal Commerce.
See www.paystand.com for more information on PayStand.
Sandbox project clone command:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/paystand/2311461.git commerce_paystand
Comment | File | Size | Author |
---|---|---|---|
#15 | pareview.sh-errors-2.png | 101.71 KB | sanat.panda |
#15 | pareview.sh-errors-1.png | 53.82 KB | sanat.panda |
Comments
Comment #1
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxpaystand2311461git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #2
paystand CreditAttribution: paystand commentedFixed the error/warning reported by pareview.sh.
Comment #3
gwprod CreditAttribution: gwprod commentedYour code fails automated testing. Please correct these issues. (They aren't blocking, however)
http://pareview.sh/pareview/httpgitdrupalorgsandboxpaystand2311461git
Please note that LANGUAGE_NONE is always preferable to 'und'. Though you should try to ensure that your code respects localization.
Comment #4
howto CreditAttribution: howto commentedPlease add link to your sandbox project page.
Your sandbox project page does't have necessary infomation
See the tips for a great project page: https://www.drupal.org/node/997024
Comment #5
howto CreditAttribution: howto commentedAutomatic review
There are some issues reported from PA Review http://pareview.sh/pareview/httpgitdrupalorgsandboxpaystand2311461git
Manual review
This module should require module commerce_payment_ui (include in project commerce) that define menu to configure payment methods (admin/commerce/config/payment-methods)
I go to Drupal Commerce Payment Settings page (admin/commerce/config/payment-methods) but there no payment method call PayStand.
Do you implement hook_commerce_payment_method_info()?
See: http://cgit.drupalcode.org/commerce/tree/modules/payment/modules/commerc...
Line 171, file commerce_paystand.module , function commerce_paystand_psn_load()
You should not use "." in condition() method. Please see https://api.drupal.org/api/drupal/includes!database!database.inc/functio...
Line 188, file commerce_paystand.module , function commerce_paystand_psn_save()
The 3rd arg is array, but your pass string to it
See: https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_...
Line 230, file commerce_paystand.module , function commerce_paystand_payment_transaction_load()
You should not pass array() to 1st arg. This will always return an empty array. You should pass FALSE to 1st arg to get all payment transactions
Line 306, file commerce_paystand.module , function commerce_paystand_fee_add_form_submit()
Why you comment all code in this function body?
Comment #6
paystand CreditAttribution: paystand commentedThanks for the review feedback.
I fixed the things you point out except line 188 because the doc says:
If there is only 1 field in the key, you may pass in a string
The commented out code is reference for future possible implementation but is not used currently.
The onre remaining long line in the README.txt file flagged as a warning by code sniffer is a url so I don't think it should be broken into multiple lines.
The payment_method_info function is implemented in the offsite sub module.
Thanks again for the feedback.
Comment #7
paystand CreditAttribution: paystand commentedComment #8
imgio CreditAttribution: imgio commentedDear @paystand,
Thanks for your contribution.
I have not checked how your module works yet but from examining the .module file, I notice the following two functions don't have a body:
Either add a body (which is currently commented out) or delete the functions.
Regards,
imgio
Comment #9
paystand CreditAttribution: paystand commentedI removed the unused functions.
Thanks for reviewing!
Comment #10
paystand CreditAttribution: paystand commentedComment #11
swim CreditAttribution: swim commentedHey,
This looks nice, good work =).
in commerce_paystand.module; function commerce_paystand_process_psn. Update the following PHP functions json_decode, json_encode to Drupal's drupal_json_encode, drupal_json_decode. You're using drupal_json_decode for file_get_contents, so maybe there's a reason. You could also consider using drupal_http_request() with $host/ $send.
in commerce_paystand_offsite.module; function commerce_paystand_offsite_settings_form. You're server options are missing t().
in commerce_paystand_offsite.module; function commerce_paystand_offsite_redirect_form. You're also using json_encode this could be updated to drupal_json_encode. Near the bottom of this function you're including some markup, split the JavaScript out and instead attached it to the form using the #attached property (you could also use drupal_add_js but the latter is better).
Obviously you need to pass $checkout_onload_json to your script, this could also be done via Drupal.settings.
I'm sure I missed stuff but I hope this helps, FYI the code I have posted is untested.
Comment #12
paystand CreditAttribution: paystand commentedThanks for the review feedback!
I changed json_ to drupal_json_ and added t function.
I did not change the javascript to use #attached as that is a substantial change that may break things.
Hopefully that is not an issue for approval.
Thanks again!
Comment #13
paystand CreditAttribution: paystand commentedIt's been almost 4 weeks since the last review, all of which have been responded to.
What needs to happen to get this approved?
Thanks!
Comment #14
paystand CreditAttribution: paystand commentedIt's now been 2 months without any response.
This process seems to be broken.
What needs to happen to move this out of sandbox?
Thanks.
Comment #15
sanat.panda CreditAttribution: sanat.panda commentedHi,
The automated testing (PareView.sh) showing some issues on 'commerce_paystand_offsite.module' file.
Have a look on the attached files for more information and try to fix them.
Sanat
Comment #16
paystand CreditAttribution: paystand commentedI thought these changes were pushed to the branch but looks like they weren't so now they are.
Comment #17
paystand CreditAttribution: paystand commentedComment #18
naveenvalechaRemoved the tag
Comment #19
waspper CreditAttribution: waspper commentedGreat, I like commerce modules :)
Watching around commerce_paystand_offsite.module, starting from line 139, there are several uses of "LANGUAGE_NONE". I would suggest using entity_metadata_wrapper, like this:
Comment #20
himmatbhatia CreditAttribution: himmatbhatia commentedHello,
You have not added your Project page link: above the git clone command.
Add this link so any one can go on your project page.
Thanks
Comment #21
braindrift CreditAttribution: braindrift commentedHi paystand,
for better performance you should create a few more indices on your table
commerce_paystand_psn
. Since yourcommerce_paystand_psn_load()
function allows to load a PSN by every column, you should put an index at least on every id column (org_id, consumer_id, order_id, transaction_id) and other columns that you could imagine that an other module could filter on it.In
commerce_paystand_offsite.module
in functioncommerce_paystand_offsite_redirect_form()
you should pass the textPayStand - Modern commerce with multiple payment methods and no transaction fees
through t(). Generally it would be a better way to define a theme function to generate the entire markup.Best regards
Comment #22
klausi@braindrift: that sound like good suggestions for improvements, but are surely not application blockers on their own. Anything else that you found or should this be RTBC instead?
Comment #23
renatogHi!
Congrats on the project.
Just some items:
File: /commerce_paystand.install
Expected 1 blank line after function
Array indentation error: expected 6 spaces but found 8
Try something like this:
Regards.
Comment #24
klausi@renatog: minor coding standard issues are surely not application blockers. Anything else that you found or should this be RTBC instead?
Comment #25
Abhijeet Sandil CreditAttribution: Abhijeet Sandil commentedIt's working fine now. Great Work.
Comment #26
kattekrab CreditAttribution: kattekrab as a volunteer commented@paystand - You can now promote this to a full project yourself.
Comment #27
apadernoThank you for your contribution!
I updated your account so you can opt into security advisory coverage now.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!
Thank you, 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.
Thanks go the dedicated reviewer(s) as well.
Comment #28
klausiAssigning credits.