<commit_before># SpreePaymillGateway

Paymill gateway for Spree. This uses the [Paymill Javascript Bridge](https://www.paymill.com/en-gb/documentation-3/reference/paymill-bridge/) 
for payments so no credit card details ever reach your server. This removes the hassle for PCI compliance.

This can be used as the basis for Stripe Javascript payments to as they are very similar in practice.

**This is very much still work in progress!**

## Installation

Add spree_paymill_gateway to your Gemfile:

```ruby
gem 'spree_paymill_gateway', :github => "Hates/spree_paymill_gateway"
```

Bundle your dependencies and run the installation generator:

```shell
bundle
bundle exec rails g spree_paymill_gateway:install
```

## Testing

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

```shell
bundle
bundle exec rake test_app
bundle exec rspec spec<commit_msg>Removed fluff<commit_after># SpreePaymillGateway

Paymill gateway for Spree. This uses the [Paymill Javascript Bridge](https://www.paymill.com/en-gb/documentation-3/reference/paymill-bridge/) 
for payments so no credit card details ever reach your server. This removes the hassle for PCI compliance.

## Installation

Add spree_paymill_gateway to your Gemfile:

```ruby
gem 'spree_paymill_gateway', :github => "Hates/spree_paymill_gateway"
```

Bundle your dependencies and run the installation generator:

```shell
bundle
bundle exec rails g spree_paymill_gateway:install
```

## Testing

Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.

```shell
bundle
bundle exec rake test_app
bundle exec rspec spec
{'fraction_non_alphanumeric': 0.07117008443908324, 'fraction_numerical': 0.0012062726176115801, 'mean_word_length': 5.2368421052631575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3239930', 'n_tokens_mistral': 499, 'n_tokens_neox': 467, 'n_words': 199}