Pay with Pay.jp provides integration with the Pay.jp payment gateway of Japan.
This module uses the Pay.jp PHP library provided by Pay.jp
to carry out the integration along with payment gateway.

This module provides functionality which can be extended depending upon the project requirement.

Project page: Pay with Pay.jp

Clone Repository:
git clone --branch 7.x-1.x git://git.drupal.org/sandbox/aniki47/2656004.git pay_with_pay_jp

REQUIREMENTS
This module requires the following modules:
* Libraries (https://www.drupal.org/project/libraries)

And a PHP library:
* Pay.jp PHP library which can be downloaded as zip file here.

INSTALLATION
1. Install as you would normally install a contributed Drupal module. See:
https://www.drupal.org/documentation/install/modules-themes/modules-7
for further information.
2. Place the Payjp PHP library in the DRUPAL_ROOT/sites/all/libraries/
directory. Rename the unzipped library folder name to 'payjp'.

CONFIGURATION
* Go to Administration » Configuration » Services » Payjp module settings:
Set the Secret API Key accordingly.
Choose the environment depending the upon, whether the site is in Development
phase or production phase.

According to the modules you enabled, you can now start using the payment
gateway depending upon the project requirement

Further documentation about the Pay.jp payment gateway can be found at: https://pay.jp/docs/api/?php#introduction

Manual reviews of other projects

- https://www.drupal.org/node/2561267#comment-10906076

Comments

aniki47 created an issue. See original summary.

aniketto’s picture

Status: Active » Needs review
PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxaniki472656004git

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.

aniketto’s picture

Status: Needs work » Needs review

Fixed the errors/warnings reported by PA robot.
PAReview Result :
http://pareview.sh/pareview/httpgitdrupalorgsandboxaniki472656004git

aniketto’s picture

Issue summary: View changes
aniketto’s picture

Issue summary: View changes
aniketto’s picture

Issue summary: View changes
Issue tags: +pare
aniketto’s picture

Issue tags: -pare
ashwinsh’s picture

Hello aniki47,

My findings for your module as follows:

pay_with_pay_jp.module

Line 57 and Line 66: The value for the 'access callback' must always be a string which is the the name of the function - never a function call. It may also be assigned the value TRUE or FALSE if the callback is always (or never) accessible. See https://www.drupal.org/node/109157

'access callback' => array('user_access'),
to
'access callback' => 'user_access',

Thank you,

jphuxley’s picture

Status: Needs review » Needs work

Automated Review

A couple of minor coding standards issues: https://pareview.sh/node/1547

Manual Review

Individual user account
Yes: Follows the guidelines for individual user accounts.
No duplication
Yes: Does not cause module duplication and/or fragmentation.
Master Branch
Yes: Follows the guidelines for master branch.
Licensing
Yes: Follows the licensing requirements.
3rd party assets/code
Yes: Follows the guidelines for 3rd party assets/code.
README.txt/README.md
Yes: Follows the guidelines for in-project documentation and/or the README Template.
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.
Secure code
Yes: Meets the security requirements.
Coding style & Drupal API usage
  1. Declaring an empty variable $output on line 40 is fairly redundant.
  2. (+) As @ashwinsh mentioned above, 'access callback' in hook_menu should be a string.
  3. Does the library do validation of any kind? Because you're not really doing any on the pay_with_pay_jp_form, which means that users could enter silly data (like letters for CVC field) and it would still pass. Granted it would probably be declined due to invalid card details, but it would be nice to inform the user about mistakes.
  4. There are a couple of strings not passed through the t() function on lines 14 and 36 of the pay_with_pay_jp_settings_form function.

The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.

If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.

This review uses the Project Application Review Template.

Overall the code looks fine, I think after you have solved the access callback issue it should be ready for RTBC.

PA robot’s picture

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

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.