solidus_braintree 1.1.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +35 -0
- data/.github/stale.yml +1 -0
- data/.gitignore +1 -0
- data/Gemfile +23 -6
- data/README.md +9 -3
- data/app/decorators/lib/solidus_braintree/spree/permitted_attributes_decorator.rb +9 -0
- data/app/decorators/models/solidus_braintree/spree/credit_card_decorator.rb +11 -0
- data/app/decorators/models/solidus_braintree/spree/payment_decorator.rb +10 -0
- data/app/models/solidus/gateway/braintree_gateway.rb +16 -3
- data/app/views/spree/admin/payments/source_forms/_braintree.html.erb +2 -2
- data/app/views/spree/admin/payments/source_views/_braintree.html.erb +3 -3
- data/app/views/spree/api/payments/source_views/_braintree.json.jbuilder +3 -0
- data/app/views/spree/checkout/payment/_braintree.html.erb +8 -8
- data/db/migrate/20150910170527_add_data_to_credit_card.rb +1 -1
- data/db/migrate/20160426221931_add_braintree_device_data_to_order.rb +1 -1
- data/lib/assets/javascripts/spree/backend/braintree/solidus_braintree.js +2 -2
- data/lib/solidus_braintree/version.rb +1 -1
- data/lib/solidus_braintree.rb +1 -0
- data/solidus_braintree.gemspec +6 -5
- metadata +40 -25
- data/.travis.yml +0 -18
- data/app/models/credit_card_decorator.rb +0 -3
- data/app/models/payment_decorator.rb +0 -2
- data/app/models/permitted_attributes_decorator.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e7b840adbe707ae71a8efa483373f9b7c565334c3a00df523d21f9588b04bfed
|
4
|
+
data.tar.gz: 468630e694e339e7fc6691ff1faa294e5b005e65855dc6d011c69d4d67356467
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b311d8caeff246350118fc88d0ad7a5595f5dbdd547be0cc8efb56e6cb2bfba2bbcd0f339369af6a20014fb614605419cee72d1f1575453541b9435b112a8ded
|
7
|
+
data.tar.gz: caaabe07835af1dae23d94ea9b40f1bb3dd27d3f998c0882d342bfcca4db9042091282e331dbf058ec23f690d01885c8621cbbc5ab6d019d65babac9f96dc069
|
@@ -0,0 +1,35 @@
|
|
1
|
+
version: 2.1
|
2
|
+
|
3
|
+
orbs:
|
4
|
+
# Always take the latest version of the orb, this allows us to
|
5
|
+
# run specs against Solidus supported versions only without the need
|
6
|
+
# to change this configuration every time a Solidus version is released
|
7
|
+
# or goes EOL.
|
8
|
+
solidusio_extensions: solidusio/extensions@volatile
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
run-specs-with-postgres:
|
12
|
+
executor: solidusio_extensions/postgres
|
13
|
+
steps:
|
14
|
+
- solidusio_extensions/run-tests
|
15
|
+
run-specs-with-mysql:
|
16
|
+
executor: solidusio_extensions/mysql
|
17
|
+
steps:
|
18
|
+
- solidusio_extensions/run-tests
|
19
|
+
|
20
|
+
workflows:
|
21
|
+
"Run specs on supported Solidus versions":
|
22
|
+
jobs:
|
23
|
+
- run-specs-with-postgres
|
24
|
+
- run-specs-with-mysql
|
25
|
+
"Weekly run specs against master":
|
26
|
+
triggers:
|
27
|
+
- schedule:
|
28
|
+
cron: "0 0 * * 4" # every Thursday
|
29
|
+
filters:
|
30
|
+
branches:
|
31
|
+
only:
|
32
|
+
- master
|
33
|
+
jobs:
|
34
|
+
- run-specs-with-postgres
|
35
|
+
- run-specs-with-mysql
|
data/.github/stale.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
_extends: .github
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -1,16 +1,33 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
|
-
branch = ENV.fetch('SOLIDUS_BRANCH', '
|
4
|
-
|
3
|
+
branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
|
4
|
+
solidus_git, solidus_frontend_git = if (branch == 'main') || (branch >= 'v3.2')
|
5
|
+
%w[solidusio/solidus solidusio/solidus_frontend]
|
6
|
+
else
|
7
|
+
%w[solidusio/solidus] * 2
|
8
|
+
end
|
9
|
+
gem 'solidus', github: solidus_git, branch: branch
|
10
|
+
gem 'solidus_frontend', github: solidus_frontend_git, branch: branch
|
5
11
|
|
6
|
-
|
7
|
-
|
12
|
+
# Needed to help Bundler figure out how to resolve dependencies,
|
13
|
+
# otherwise it takes forever to resolve them
|
14
|
+
if branch == 'main' || Gem::Version.new(branch[1..-1]) >= Gem::Version.new('2.10.0')
|
15
|
+
gem 'rails', '~> 6.0'
|
16
|
+
else
|
17
|
+
gem 'rails', '~> 5.0'
|
8
18
|
end
|
9
19
|
|
10
|
-
|
11
|
-
|
20
|
+
case ENV['DB']
|
21
|
+
when 'mysql'
|
22
|
+
gem 'mysql2'
|
23
|
+
when 'postgres'
|
24
|
+
gem 'pg'
|
25
|
+
end
|
26
|
+
|
27
|
+
gem "rails-controller-testing", group: :test
|
12
28
|
|
13
29
|
group :development, :test do
|
30
|
+
gem 'factory_bot', '> 4.10.0'
|
14
31
|
gem "pry-rails"
|
15
32
|
end
|
16
33
|
|
data/README.md
CHANGED
@@ -1,11 +1,17 @@
|
|
1
|
-
#
|
1
|
+
# Solidus Braintree
|
2
2
|
|
3
|
-
|
3
|
+
[![CircleCI](https://circleci.com/gh/solidusio/solidus_braintree.svg?style=svg)](https://circleci.com/gh/solidusio/solidus_braintree)
|
4
|
+
|
5
|
+
`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.
|
4
6
|
|
5
7
|
It provides support for credit card and Paypal payment methods via the `Spree::CreditCard`
|
6
8
|
|
7
9
|
It will add the braintree-drop-in form for payment methods in the payment form of spree/backend. Spree front-end is currently unsupported.
|
8
10
|
|
11
|
+
## DEPRECATION NOTICE :warning: :construction:
|
12
|
+
|
13
|
+
This extension is deprecated in favor of [Solidus Paypal Braintree](https://github.com/solidusio/solidus_paypal_braintree).
|
14
|
+
|
9
15
|
## Installation
|
10
16
|
|
11
17
|
Add this line to your solidus application's Gemfile:
|
@@ -30,7 +36,7 @@ Control Panel.
|
|
30
36
|
|
31
37
|
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.
|
32
38
|
|
33
|
-
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
|
39
|
+
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, merchant id, and the proper environment. Please ensure that the environment value is included among the values listed [here](https://github.com/braintree/braintree_ruby/blob/7660ae6f6d228acee8eaedd1830afafbaf91820f/lib/braintree/configuration.rb#L235), otherwise you will encounter unexpected errors. The admin will render a Braintree dropin container when prompting you to create an order payment.
|
34
40
|
|
35
41
|
It adds a json or text `data` field on `Spree::CreditCard` for storing additional information received from Braintree for addtional payment methods.
|
36
42
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CreditCardDecorator
|
4
|
+
def self.prepended(base)
|
5
|
+
base.include SolidusBraintree::SkipRequireCardNumbersConcern
|
6
|
+
base.include SolidusBraintree::AddNameValidationConcern
|
7
|
+
base.include SolidusBraintree::UseDataFieldConcern
|
8
|
+
end
|
9
|
+
|
10
|
+
Spree::CreditCard.prepend(self)
|
11
|
+
end
|
@@ -1,7 +1,14 @@
|
|
1
1
|
require "braintree"
|
2
2
|
|
3
3
|
module Solidus
|
4
|
-
|
4
|
+
gateway_superclass =
|
5
|
+
if SolidusSupport.solidus_gem_version < Gem::Version.new('2.3.x')
|
6
|
+
::Spree::Gateway
|
7
|
+
else
|
8
|
+
::Spree::PaymentMethod::CreditCard
|
9
|
+
end
|
10
|
+
|
11
|
+
class Gateway::BraintreeGateway < gateway_superclass
|
5
12
|
preference :environment, :string
|
6
13
|
preference :merchant_id, :string
|
7
14
|
preference :public_key, :string
|
@@ -22,8 +29,14 @@ module Solidus
|
|
22
29
|
'Visa' => 'visa',
|
23
30
|
}
|
24
31
|
|
25
|
-
|
26
|
-
|
32
|
+
if SolidusSupport.solidus_gem_version < Gem::Version.new('2.3.x')
|
33
|
+
def method_type
|
34
|
+
'braintree'
|
35
|
+
end
|
36
|
+
else
|
37
|
+
def partial_name
|
38
|
+
'braintree'
|
39
|
+
end
|
27
40
|
end
|
28
41
|
|
29
42
|
def gateway_options
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<label><%= radio_button_tag :card, card.id, card == previous_cards.first %> <%= card.display_number %><br /></label>
|
6
6
|
<% end %>
|
7
7
|
<% end %>
|
8
|
-
<label><%= radio_button_tag :card, 'new', false, { id: "card_new#{payment_method.id}" } %> <%=
|
8
|
+
<label><%= radio_button_tag :card, 'new', false, { id: "card_new#{payment_method.id}" } %> <%= t('spree.use_new_cc') %></label>
|
9
9
|
</div>
|
10
10
|
|
11
11
|
<div id="card_form<%= payment_method.id %>" data-hook>
|
@@ -27,7 +27,7 @@
|
|
27
27
|
|
28
28
|
<div class="clear"></div>
|
29
29
|
|
30
|
-
<%= label_tag "card_address#{payment_method.id}",
|
30
|
+
<%= label_tag "card_address#{payment_method.id}", t('spree.billing_address') %>
|
31
31
|
<% address = @order.bill_address || @order.ship_address || Spree::Address.build_default %>
|
32
32
|
<%= fields_for "#{param_prefix}[address_attributes]", address do |f| %>
|
33
33
|
<%= render :partial => 'spree/admin/shared/address_form', :locals => { :f => f, :type => "billing" } %>
|
@@ -4,13 +4,13 @@
|
|
4
4
|
<div class="row">
|
5
5
|
<div class="alpha six columns">
|
6
6
|
<dl>
|
7
|
-
<dt><%=
|
7
|
+
<dt><%= t('spree.identifier') %>:</dt>
|
8
8
|
<dd><%= payment.number %></dd>
|
9
9
|
|
10
|
-
<dt><%=
|
10
|
+
<dt><%= t('spree.response_code') %>:</dt>
|
11
11
|
<dd><%= braintree_transaction_link(payment.response_code) %></dd>
|
12
12
|
|
13
|
-
<dt><%=
|
13
|
+
<dt><%= t('spree.name_on_card') %>:</dt>
|
14
14
|
<dd><%= payment.source.name %></dd>
|
15
15
|
|
16
16
|
<dt><%= Spree::CreditCard.human_attribute_name(:cc_type) %>:</dt>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
</div>
|
8
8
|
<div id="#braintree_paypal_container"></div>
|
9
9
|
</div>
|
10
|
-
|
10
|
+
|
11
11
|
<div class="braintree-cc-input">
|
12
12
|
<div class="braintree-cc-header">
|
13
13
|
<%= t('solidus_braintree.creditcard_header_html') %>
|
@@ -16,31 +16,31 @@
|
|
16
16
|
<% param_prefix = "payment_source[#{payment_method.id}]" %>
|
17
17
|
|
18
18
|
<p class="field">
|
19
|
-
<%= label_tag "name_on_card_#{payment_method.id}",
|
19
|
+
<%= label_tag "name_on_card_#{payment_method.id}", t('spree.name_on_card') %><span class="required">*</span><br />
|
20
20
|
<%= text_field_tag "#{param_prefix}[name]", "#{@order.billing_firstname} #{@order.billing_lastname}", { id: "name_on_card_#{payment_method.id}", :autocomplete => "cc-name" } %>
|
21
21
|
</p>
|
22
22
|
|
23
23
|
<p class="field" data-hook="card_number">
|
24
|
-
<%= label_tag "braintree_card_number",
|
24
|
+
<%= label_tag "braintree_card_number", t('spree.card_number') %><span class="required">*</span><br />
|
25
25
|
<label for="braintree_card_number" id="braintree_card_number" class="braintree-hosted-field"></label>
|
26
26
|
|
27
27
|
<span id="card_type" style="display:none;">
|
28
|
-
( <span id="looks_like" ><%=
|
29
|
-
<span id="unrecognized"><%=
|
28
|
+
( <span id="looks_like" ><%= t('spree.card_type_is') %> <span id="type"></span></span>
|
29
|
+
<span id="unrecognized"><%= t('spree.unrecognized_card_type') %></span>
|
30
30
|
)
|
31
31
|
</span>
|
32
32
|
</p>
|
33
33
|
|
34
34
|
<p class="field" data-hook="card_expiration">
|
35
|
-
<%= label_tag "braintree_card_expiry",
|
35
|
+
<%= label_tag "braintree_card_expiry", t('spree.expiration') %><span class="required">*</span><br />
|
36
36
|
<label for="braintree_card_expiry" id="braintree_card_expiry" class="braintree-hosted-field"></label>
|
37
37
|
</p>
|
38
38
|
|
39
39
|
<p class="field" data-hook="card_code">
|
40
|
-
<%= label_tag "braintree_card_code",
|
40
|
+
<%= label_tag "braintree_card_code", t('spree.card_code') %><span class="required">*</span><br />
|
41
41
|
|
42
42
|
<label for="braintree_card_code" id="braintree_card_code" class="braintree-hosted-field card-code"></label>
|
43
|
-
<%= link_to "(#{
|
43
|
+
<%= link_to "(#{t('spree.what_is_this')})", spree.cvv_path, :target => '_blank', "data-hook" => "cvv_link", :id => "cvv_link" %>
|
44
44
|
</p>
|
45
45
|
</div>
|
46
46
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
//= require "vendor/braintree"
|
2
2
|
|
3
|
-
Spree.
|
3
|
+
Spree.pathFor.payment_client_token_api = Spree.pathFor("api/payment_client_token")
|
4
4
|
|
5
5
|
var braintreeDropinIntegration;
|
6
6
|
var paymentForm = "#new_payment";
|
@@ -8,7 +8,7 @@ var cardSelector = "#new_payment [name=card]";
|
|
8
8
|
|
9
9
|
var getClientToken = function(onSuccess) {
|
10
10
|
return Spree.ajax({
|
11
|
-
url: Spree.
|
11
|
+
url: Spree.pathFor.payment_client_token_api,
|
12
12
|
type: "POST",
|
13
13
|
data: {
|
14
14
|
payment_method_id: $('form input[type=radio]:checked').val()
|
data/lib/solidus_braintree.rb
CHANGED
data/solidus_braintree.gemspec
CHANGED
@@ -19,17 +19,18 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "solidus_api", [">= 1.0.0", "<
|
23
|
-
spec.add_dependency "solidus_core", [">= 1.0.0", "<
|
22
|
+
spec.add_dependency "solidus_api", [">= 1.0.0", "< 4"]
|
23
|
+
spec.add_dependency "solidus_core", [">= 1.0.0", "< 4"]
|
24
|
+
spec.add_dependency "solidus_support"
|
24
25
|
spec.add_dependency "braintree", "~> 2.46"
|
25
26
|
|
26
27
|
spec.add_development_dependency "bundler", "~> 1.10"
|
27
28
|
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
-
spec.add_development_dependency '
|
29
|
+
spec.add_development_dependency 'factory_bot', '~> 4.4'
|
29
30
|
spec.add_development_dependency 'rspec-rails'
|
30
|
-
spec.add_development_dependency 'capybara'
|
31
|
+
spec.add_development_dependency 'capybara', '~> 2.18'
|
31
32
|
spec.add_development_dependency 'capybara-screenshot'
|
32
|
-
spec.add_development_dependency '
|
33
|
+
spec.add_development_dependency 'webdrivers'
|
33
34
|
spec.add_development_dependency 'ffaker'
|
34
35
|
spec.add_development_dependency "rspec"
|
35
36
|
spec.add_development_dependency "pry"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_braintree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_api
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 1.0.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '4'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 1.0.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '4'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: solidus_core
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: 1.0.0
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '4'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,21 @@ dependencies:
|
|
49
49
|
version: 1.0.0
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '4'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: solidus_support
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
60
|
+
type: :runtime
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
53
67
|
- !ruby/object:Gem::Dependency
|
54
68
|
name: braintree
|
55
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,7 +107,7 @@ dependencies:
|
|
93
107
|
- !ruby/object:Gem::Version
|
94
108
|
version: '10.0'
|
95
109
|
- !ruby/object:Gem::Dependency
|
96
|
-
name:
|
110
|
+
name: factory_bot
|
97
111
|
requirement: !ruby/object:Gem::Requirement
|
98
112
|
requirements:
|
99
113
|
- - "~>"
|
@@ -124,16 +138,16 @@ dependencies:
|
|
124
138
|
name: capybara
|
125
139
|
requirement: !ruby/object:Gem::Requirement
|
126
140
|
requirements:
|
127
|
-
- - "
|
141
|
+
- - "~>"
|
128
142
|
- !ruby/object:Gem::Version
|
129
|
-
version: '
|
143
|
+
version: '2.18'
|
130
144
|
type: :development
|
131
145
|
prerelease: false
|
132
146
|
version_requirements: !ruby/object:Gem::Requirement
|
133
147
|
requirements:
|
134
|
-
- - "
|
148
|
+
- - "~>"
|
135
149
|
- !ruby/object:Gem::Version
|
136
|
-
version: '
|
150
|
+
version: '2.18'
|
137
151
|
- !ruby/object:Gem::Dependency
|
138
152
|
name: capybara-screenshot
|
139
153
|
requirement: !ruby/object:Gem::Requirement
|
@@ -149,19 +163,19 @@ dependencies:
|
|
149
163
|
- !ruby/object:Gem::Version
|
150
164
|
version: '0'
|
151
165
|
- !ruby/object:Gem::Dependency
|
152
|
-
name:
|
166
|
+
name: webdrivers
|
153
167
|
requirement: !ruby/object:Gem::Requirement
|
154
168
|
requirements:
|
155
|
-
- - "
|
169
|
+
- - ">="
|
156
170
|
- !ruby/object:Gem::Version
|
157
|
-
version: '
|
171
|
+
version: '0'
|
158
172
|
type: :development
|
159
173
|
prerelease: false
|
160
174
|
version_requirements: !ruby/object:Gem::Requirement
|
161
175
|
requirements:
|
162
|
-
- - "
|
176
|
+
- - ">="
|
163
177
|
- !ruby/object:Gem::Version
|
164
|
-
version: '
|
178
|
+
version: '0'
|
165
179
|
- !ruby/object:Gem::Dependency
|
166
180
|
name: ffaker
|
167
181
|
requirement: !ruby/object:Gem::Requirement
|
@@ -295,15 +309,19 @@ executables: []
|
|
295
309
|
extensions: []
|
296
310
|
extra_rdoc_files: []
|
297
311
|
files:
|
312
|
+
- ".circleci/config.yml"
|
313
|
+
- ".github/stale.yml"
|
298
314
|
- ".gitignore"
|
299
315
|
- ".rspec"
|
300
|
-
- ".travis.yml"
|
301
316
|
- CHANGELOG.md
|
302
317
|
- Gemfile
|
303
318
|
- LICENSE.txt
|
304
319
|
- README.md
|
305
320
|
- Rakefile
|
306
321
|
- app/controllers/spree/api/braintree_client_token_controller.rb
|
322
|
+
- app/decorators/lib/solidus_braintree/spree/permitted_attributes_decorator.rb
|
323
|
+
- app/decorators/models/solidus_braintree/spree/credit_card_decorator.rb
|
324
|
+
- app/decorators/models/solidus_braintree/spree/payment_decorator.rb
|
307
325
|
- app/helpers/braintree_view_helpers.rb
|
308
326
|
- app/models/concerns/solidus_braintree/add_name_validation_concern.rb
|
309
327
|
- app/models/concerns/solidus_braintree/inject_device_data_concern.rb
|
@@ -311,13 +329,11 @@ files:
|
|
311
329
|
- app/models/concerns/solidus_braintree/permitted_attributes_concern.rb
|
312
330
|
- app/models/concerns/solidus_braintree/skip_require_card_numbers_concern.rb
|
313
331
|
- app/models/concerns/solidus_braintree/use_data_field_concern.rb
|
314
|
-
- app/models/credit_card_decorator.rb
|
315
|
-
- app/models/payment_decorator.rb
|
316
|
-
- app/models/permitted_attributes_decorator.rb
|
317
332
|
- app/models/solidus/gateway/braintree_gateway.rb
|
318
333
|
- app/overrides/spree/checkout/_confirm/braintree_security.html.erb.deface
|
319
334
|
- app/views/spree/admin/payments/source_forms/_braintree.html.erb
|
320
335
|
- app/views/spree/admin/payments/source_views/_braintree.html.erb
|
336
|
+
- app/views/spree/api/payments/source_views/_braintree.json.jbuilder
|
321
337
|
- app/views/spree/checkout/payment/_braintree.html.erb
|
322
338
|
- app/views/spree/checkout/payment/_braintree_initialization.html.erb
|
323
339
|
- bin/console
|
@@ -341,7 +357,7 @@ homepage: https://solidus.io
|
|
341
357
|
licenses:
|
342
358
|
- MIT
|
343
359
|
metadata: {}
|
344
|
-
post_install_message:
|
360
|
+
post_install_message:
|
345
361
|
rdoc_options: []
|
346
362
|
require_paths:
|
347
363
|
- lib
|
@@ -356,9 +372,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
356
372
|
- !ruby/object:Gem::Version
|
357
373
|
version: '0'
|
358
374
|
requirements: []
|
359
|
-
|
360
|
-
|
361
|
-
signing_key:
|
375
|
+
rubygems_version: 3.4.19
|
376
|
+
signing_key:
|
362
377
|
specification_version: 4
|
363
378
|
summary: Adds Solidus support for Braintree v.zero Gateway.
|
364
379
|
test_files: []
|
data/.travis.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
rvm:
|
4
|
-
- 2.3.1
|
5
|
-
env:
|
6
|
-
matrix:
|
7
|
-
- SOLIDUS_BRANCH=v1.1 DB=postgres
|
8
|
-
- SOLIDUS_BRANCH=v1.2 DB=postgres
|
9
|
-
- SOLIDUS_BRANCH=v1.3 DB=postgres
|
10
|
-
- SOLIDUS_BRANCH=v1.4 DB=postgres
|
11
|
-
- SOLIDUS_BRANCH=v2.0 DB=postgres
|
12
|
-
- SOLIDUS_BRANCH=master DB=postgres
|
13
|
-
- SOLIDUS_BRANCH=v1.1 DB=mysql
|
14
|
-
- SOLIDUS_BRANCH=v1.2 DB=mysql
|
15
|
-
- SOLIDUS_BRANCH=v1.3 DB=mysql
|
16
|
-
- SOLIDUS_BRANCH=v1.4 DB=mysql
|
17
|
-
- SOLIDUS_BRANCH=v2.0 DB=mysql
|
18
|
-
- SOLIDUS_BRANCH=master DB=mysql
|
@@ -1 +0,0 @@
|
|
1
|
-
Spree::PermittedAttributes.singleton_class.prepend SolidusBraintree::PermittedAttributesConcern
|