<commit_before># Solidus Braintree

[![Build Status](https://travis-ci.org/solidusio/solidus_braintree.svg?branch=master)](https://travis-ci.org/solidusio/solidus_braintree)

`solidus_braintree` is a gem that adds [Braintree v.zero](https://www.braintreepayments.com/v.zero) support to the [solidus](http://solidus.io/) E-commerce platform.

It provides support for credit card and Paypal payment methods via the `Spree::CreditCard`

It will add the braintree-drop-in form for payment methods in the payment form of spree/backend. Spree front-end is currently unsupported.

## Installation

Add this line to your solidus application's Gemfile:

```ruby
gem "solidus_braintree"
```

And then execute:

    $ bundle
    $ bundle exec rails g solidus_braintree:install


## Fraud detection

This gem has support for the advanced fraud tools flow from Braintree, to activate
fully the associated Braintree account must enable advanced fraud tools in the
Control Panel.

## Usage

This gem extends your solidus application by adding a `POST /api/payment_client_token` endpoint to you application to generate Braintree payment client token. This endpoint requires an authentication token in your request header.

It creates a new `PaymentMethod` class called `Solidus::Gateway::BraintreeGateway`. You can configure this payment method in the admin and add your Braintree public/private keys and merchant id. The admin will render a Braintree dropin container when prompting you to create an order payment.
<commit_msg>Fixes link to Braintree v.zero docs<commit_after># Solidus Braintree

[![Build Status](https://travis-ci.org/solidusio/solidus_braintree.svg?branch=master)](https://travis-ci.org/solidusio/solidus_braintree)

`solidus_braintree` is a gem that adds [Braintree v.zero](https://www.braintreepayments.com/v-zero) support to the [solidus](http://solidus.io/) E-commerce platform.

It provides support for credit card and Paypal payment methods via the `Spree::CreditCard`

It will add the braintree-drop-in form for payment methods in the payment form of spree/backend. Spree front-end is currently unsupported.

## Installation

Add this line to your solidus application's Gemfile:

```ruby
gem "solidus_braintree"
```

And then execute:

    $ bundle
    $ bundle exec rails g solidus_braintree:install


## Fraud detection

This gem has support for the advanced fraud tools flow from Braintree, to activate
fully the associated Braintree account must enable advanced fraud tools in the
Control Panel.

## Usage

This gem extends your solidus application by adding a `POST /api/payment_client_token` endpoint to you application to generate Braintree payment client token. This endpoint requires an authentication token in your request header.

It creates a new `PaymentMethod` class called `Solidus::Gateway::BraintreeGateway`. You can configure this payment method in the admin and add your Braintree public/private keys and merchant id. The admin will render a Braintree dropin container when prompting you to create an order payment.

{'fraction_non_alphanumeric': 0.06927117531188444, 'fraction_numerical': 0.0, 'mean_word_length': 5.081836327345309, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6899790', 'n_tokens_mistral': 852, 'n_tokens_neox': 830, 'n_words': 359}