This module integrates mbe4 mobile payment into Ubercart 2

The Mobile Business Engine 4 (mbe4) platform is a mobile payment solution which provides mobile micropayments via phone bill. It is developed to pay for digital contents, like ring tones, videos, music, ebooks and other digital goods. It is possible to use mbe4 for mobile post- and pre-paid procedures. Nearly everybody who has a contract with a German mobile network operator is able to pay via mobile phone, until 15 € per purchase.

Made for Drupal 6, Ubercart2

Project Homepage

http://drupal.org/sandbox/rico.schaefer/1799470 uc_mbe4

Git Repository

git clone --recursive --branch 6.x-1.x-dev http://git.drupal.org/sandbox/rico.schaefer/1799470.git uc_mbe4

Reviewed Projects

http://drupal.org/node/1593136#comment-6564388
http://drupal.org/node/1281690#comment-6564334
http://drupal.org/node/1802578#comment-6564236
http://drupal.org/node/1677154#comment-6564314

Comments

klausi’s picture

Don't forget to add the PAReview: review bonus" tag as indicated in #1410826: [META] Review bonus, otherwise you won't show up on my high priority list.

rico.schaefer’s picture

Issue tags: +PAreview: review bonus

Thanks for the hint!

mpdonadio’s picture

I do not have a working Ubercart install right now, so this is just a code walkthrough.

You have a bunch of code formatting problems: http://ventral.org/pareview/httpgitdrupalorgsandboxricoschaefer1799470git

You have an empty README.md file.

Your README.txt is nearly empty. This should at least have a project description.

uc_mbe4.test is empty.

Is mbe4.class.inc a third-part library? If so, you should read the policy on including third-party code.

uc_mbe4_menu() references a file that doesn't exist.

Your access callback should really be identified as such. It is also a good idea to explicitly define a permission and let admins decide whether users can access it.

You create a bunch of variables; you should have a hook_uninstall to clean this up.

Is uc_payment_method_mbe4() a hook? If so, it needs the proper docblock.

You are adding the CSS twice: once in the hook_init() and again in the form_alter

klausi’s picture

Status: Needs review » Needs work

Changing status per comment #3.

rico.schaefer’s picture

Status: Needs work » Needs review

I've fixed all named problems:

  • Added description to readme.txt & readme.md
  • Removed uc_mbe4.test
  • mbe4.class.inc isn't a third-party library, it's deveolped for this project.
  • Empty file-reference from hook_menu removed
  • Access Callback edited, hook_perm integrated
  • hook_uninstall in install-file defined
  • Removed second CSS-include
  • Corrected nearly all code-formatting problems, other messages are ok, i thing
klausi’s picture

Issue tags: -PAreview: review bonus

Removing review bonus tag, you have not done any manual review, you just posted the output of an automated review tool. Make sure to read through the source code of the other projects.

mpdonadio’s picture

PAreview brought up some warnings: http://ventral.org/pareview/httpgitdrupalorgsandboxricoschaefer1799470git

If all you are doing is checking the permission you defined, your hook menu can just be

function uc_mbe4_menu() {
  $items = array();
  // Callback-Pfad für Redirect von mbe4
  $items['cart/mbe4/complete'] = array(
    'page callback' => 'uc_mbe4_complete',
    'access callback' => 'user_access',
    'access arguments' => array('complete checkout with mbe4 payment'),
    'type' => MENU_CALLBACK,
  );
  return $items;
}

Since I am not a Ubercart dev, I am not comfortable chaning the review status of this.

tr’s picture

Status: Needs review » Needs work

I agree with @matthew.donadio about rewriting hook_menu() to handle the permission better. The code in #7 does the same thing as your current code.

There are only a few tiny coding and documentation standards issues left, and they are very minor (e.g. indentation). Those shouldn't block approval.

But something that must be resolved is the branch naming. You have a branch 6.x-1.x and another branch 6.x-1.x-dev. 6.x-1.x-dev is not a valid branch name (see http://drupal.org/node/1015226) and will cause all sorts of problems down the road. As these two branches seem to be identical, you should simply delete the 6.x-1.x-dev branch. Once that is done I think this module is ready to be published and I will set it to RTBC.

klausi’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. Feel free to reopen if you are still working on this application.

If you reopen this please keep in mind that we are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)

klausi’s picture

Issue summary: View changes

git-command corrected

klausi’s picture

Status: Reviewed & tested by the community » Closed (won't fix)

Closing due to lack of activity. Feel free to reopen.