Works with (and requires) Commerce Braintree to integrate Braintree JS client-side encryption into credit card forms.

The hooks used to create the on-site payment method are similar to Commerce Authnet, but this module collects Braintree account settings and then loads in the Braintree JS javascript into the page on the payment pane.

The form API gets a little mangled by Braintree JS (see commerce_braintree_js_submit_form_submit) so raw $_POST data does get used in place of $form_state['values'] to retrieve the encrypted values from the form submission.

The Braintree server-side API is then loaded via Commerce Braintree, and used to send the encrypted data to Braintree's servers.

Installation instructions are available on the project page:
Project: https://drupal.org/sandbox/tmsimont/2092519
git: git clone --branch 7.x-1.x tmsimont@git.drupal.org:sandbox/tmsimont/2092519.git

Comments

Shouldn't this live inside the Commerce Braintree project?

probably -- i just want to get some more eyes on this and some more involvement. i don't mind where it ends up

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.

Status:Needs review» Needs work

Automated review:

No issues reported by pareview.

Manual review:

  1. Change the git clone link to the non-maintainer version. Current link asks for the password.
  2. You should also add
    dependencies[] = commerce
    because when trying to directly enable the module with drush drush en commerce_braintree_js, it gives the following errors:
    drush en commerce_braintree_js -y
    No release history was found for the requested project (commerce_payment).                                                          [warning]
    No release history was found for the requested project (commerce_order).                                                                [warning]
    The following projects have unmet dependencies:                                                                                                        [ok]
    commerce_braintree_js requires commerce_braintree
    Would you like to download them? (y/n): y
    Project commerce_braintree (7.x-2.x-dev) downloaded to sites/all/modules/commerce_braintree.                                        [success]
    No release history was found for the requested project (commerce_payment).                                                          [warning]
    No release history was found for the requested project (commerce_order).                                                                [warning]
    Module commerce_braintree_js cannot be enabled because it depends on the following
    modules which could not be found:                                                                                                                                [error]
    commerce_payment,commerce_order

    The release history couldn't be found because they are a part of commerce module and cannot be downloaded separately, hence the error.

Issue summary:View changes
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 (see also the project application workflow).

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