solidus_paypal_braintree 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/Gemfile +7 -1
- data/app/models/solidus_paypal_braintree/gateway.rb +3 -3
- data/lib/solidus_paypal_braintree/factories.rb +5 -5
- data/lib/solidus_paypal_braintree/version.rb +1 -1
- data/lib/views/frontend/solidus_paypal_braintree/payments/_payment.html.erb +3 -3
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c020d3e16f7e113ad45cde24ae56a9df9df4eef47bc0698baf745648cd9f279b
|
|
4
|
+
data.tar.gz: 94214d4a10a14e6a894d32e859d674bb26476f8159e6b6549eb9b8c849d72f8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f8f74dfa20c79a7c5b2df844260fd57887b4ccf35aa29724e605661d294ff5584eadc236c1d7a4cfc56b2cfff64913b727b9c029765600734c6874a4574fb79
|
|
7
|
+
data.tar.gz: 6876a643638762d3f6c6d8a915ea1651eea2f928f5ca3f92a59cbc0fcd81ce59d7ee6a688d9587a362bc9e0460efea6e312cd471c81f96fc7e4a797faab3c967
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
|
@@ -4,7 +4,13 @@ source 'https://rubygems.org'
|
|
|
4
4
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
|
5
5
|
|
|
6
6
|
branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
|
|
7
|
-
|
|
7
|
+
solidus_git, solidus_frontend_git = if (branch == 'master') || (branch >= 'v3.2')
|
|
8
|
+
%w[solidusio/solidus solidusio/solidus_frontend]
|
|
9
|
+
else
|
|
10
|
+
%w[solidusio/solidus] * 2
|
|
11
|
+
end
|
|
12
|
+
gem 'solidus', github: solidus_git, branch: branch
|
|
13
|
+
gem 'solidus_frontend', github: solidus_frontend_git, branch: branch
|
|
8
14
|
|
|
9
15
|
gem 'rails', ENV.fetch('RAILS_VERSION', nil)
|
|
10
16
|
|
|
@@ -11,9 +11,9 @@ module SolidusPaypalBraintree
|
|
|
11
11
|
# Error message from Braintree that gets returned by a non voidable transaction
|
|
12
12
|
NON_VOIDABLE_STATUS_ERROR_REGEXP = /can only be voided if status is authorized/.freeze
|
|
13
13
|
|
|
14
|
-
TOKEN_GENERATION_DISABLED_MESSAGE = 'Token generation is disabled.' \
|
|
15
|
-
'
|
|
16
|
-
'
|
|
14
|
+
TOKEN_GENERATION_DISABLED_MESSAGE = 'Token generation is disabled. ' \
|
|
15
|
+
'To re-enable set the `token_generation_enabled` preference on the ' \
|
|
16
|
+
'gateway to `true`.'
|
|
17
17
|
|
|
18
18
|
ALLOWED_BRAINTREE_OPTIONS = [
|
|
19
19
|
:device_data,
|
|
@@ -8,8 +8,8 @@ FactoryBot.define do
|
|
|
8
8
|
# require 'solidus_paypal_braintree/factories'
|
|
9
9
|
|
|
10
10
|
factory :solidus_paypal_braintree_payment_method, class: SolidusPaypalBraintree::Gateway do
|
|
11
|
-
name 'Solidus PayPal Braintree Gateway'
|
|
12
|
-
active true
|
|
11
|
+
name { 'Solidus PayPal Braintree Gateway' }
|
|
12
|
+
active { true }
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
factory :solidus_paypal_braintree_source, class: SolidusPaypalBraintree::Source do
|
|
@@ -17,15 +17,15 @@ FactoryBot.define do
|
|
|
17
17
|
user
|
|
18
18
|
|
|
19
19
|
trait :credit_card do
|
|
20
|
-
payment_type SolidusPaypalBraintree::Source::CREDIT_CARD
|
|
20
|
+
payment_type { SolidusPaypalBraintree::Source::CREDIT_CARD }
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
trait :paypal do
|
|
24
|
-
payment_type SolidusPaypalBraintree::Source::PAYPAL
|
|
24
|
+
payment_type { SolidusPaypalBraintree::Source::PAYPAL }
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
trait :apple_pay do
|
|
28
|
-
payment_type SolidusPaypalBraintree::Source::APPLE_PAY
|
|
28
|
+
payment_type { SolidusPaypalBraintree::Source::APPLE_PAY }
|
|
29
29
|
end
|
|
30
30
|
end
|
|
31
31
|
end
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<br />
|
|
2
|
-
<%= payment.source.display_payment_type %>
|
|
2
|
+
<%= payment.source.try(:display_payment_type) %>
|
|
3
3
|
|
|
4
|
-
<% if payment.source.paypal? %>
|
|
4
|
+
<% if payment.source.try(:paypal?) %>
|
|
5
5
|
<% if payment.source.respond_to?(:paypal_funding_source) && payment.source.paypal_funding_source.present? %>
|
|
6
6
|
<br />
|
|
7
7
|
<%= t('spree.paypal_funding', funding: payment.source.display_paypal_funding_source) %>
|
|
8
8
|
<% end %>
|
|
9
|
-
<% elsif payment.source.venmo? %>
|
|
9
|
+
<% elsif payment.source.try(:venmo?) %>
|
|
10
10
|
<br />
|
|
11
11
|
<%= payment.source.source_description %>
|
|
12
12
|
<% end %>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solidus_paypal_braintree
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stembolt
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-10-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemerchant
|
|
@@ -276,7 +276,7 @@ metadata:
|
|
|
276
276
|
homepage_uri: https://github.com/solidusio/solidus_paypal_braintree
|
|
277
277
|
source_code_uri: https://github.com/solidusio/solidus_paypal_braintree
|
|
278
278
|
rubygems_mfa_required: 'true'
|
|
279
|
-
post_install_message:
|
|
279
|
+
post_install_message:
|
|
280
280
|
rdoc_options: []
|
|
281
281
|
require_paths:
|
|
282
282
|
- lib
|
|
@@ -291,8 +291,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
291
291
|
- !ruby/object:Gem::Version
|
|
292
292
|
version: '0'
|
|
293
293
|
requirements: []
|
|
294
|
-
rubygems_version: 3.
|
|
295
|
-
signing_key:
|
|
294
|
+
rubygems_version: 3.2.32
|
|
295
|
+
signing_key:
|
|
296
296
|
specification_version: 4
|
|
297
297
|
summary: Officially supported Paypal/Braintree extension
|
|
298
298
|
test_files: []
|