workarea-braintree 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/workarea/braintree.rb +8 -5
- data/lib/workarea/braintree/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ae05c1f2b30e466ed84f33491cfa940a05d628be2efa201c61036093b996573
|
4
|
+
data.tar.gz: ae57c9b32b8a8bb51f81f89a1bc64b6e81906c46e935e09412540fa60fa8088f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1637e94ac20b7a35b36008345bf0efe18c4aec75c3fe74edaa0df089395828e23a5c4c84c59b1cac9f98796551c6933d68ed752cf339d102d25575e3219470ea
|
7
|
+
data.tar.gz: 86fff7a7e9e64dbe2e1bb9b86d050891fa3a7e8db91eae3f5ae52c36ffab28ae1929e548d3ed2940b84d65c06057359f82fd640319910d123bb85e5a098d743c
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
Workarea Braintree 1.1.2 (2020-08-21)
|
2
|
+
--------------------------------------------------------------------------------
|
3
|
+
|
4
|
+
* Add PayPal BN Code to Braintree Gateways
|
5
|
+
|
6
|
+
The BN code for PayPal revenue attribution has now been added to all
|
7
|
+
Braintree gateway requests using the global `.application_id` parameter.
|
8
|
+
This maps the `:channel` in Braintree's API to the BN code set on the
|
9
|
+
class level.
|
10
|
+
|
11
|
+
BRAINTREE-2
|
12
|
+
|
13
|
+
Tom Scott
|
14
|
+
|
15
|
+
|
16
|
+
|
1
17
|
Workarea Braintree 1.1.1 (2020-02-27)
|
2
18
|
--------------------------------------------------------------------------------
|
3
19
|
|
data/lib/workarea/braintree.rb
CHANGED
@@ -3,17 +3,20 @@ require "workarea/braintree/version"
|
|
3
3
|
|
4
4
|
require "active_merchant/billing/bogus_braintree_gateway"
|
5
5
|
|
6
|
-
# Don't change this value, it's needed for
|
7
|
-
ActiveMerchant::Billing::BraintreeBlueGateway.application_id = '
|
8
|
-
ActiveMerchant::Billing::BraintreeOrangeGateway.application_id = '
|
9
|
-
ActiveMerchant::Billing::BogusBraintreeGateway.application_id = '
|
6
|
+
# Don't change this value, it's needed for attribution
|
7
|
+
ActiveMerchant::Billing::BraintreeBlueGateway.application_id = 'Workarea_SP'
|
8
|
+
ActiveMerchant::Billing::BraintreeOrangeGateway.application_id = 'Workarea_SP'
|
9
|
+
ActiveMerchant::Billing::BogusBraintreeGateway.application_id = 'Workarea_SP'
|
10
10
|
|
11
11
|
module Workarea
|
12
12
|
module Braintree
|
13
13
|
def self.auto_configure_gateway
|
14
14
|
if Rails.application.secrets.braintree.present?
|
15
15
|
self.gateway = ActiveMerchant::Billing::BraintreeGateway.new(
|
16
|
-
Rails.application.secrets.braintree.deep_symbolize_keys
|
16
|
+
Rails.application.secrets.braintree.deep_symbolize_keys.merge(
|
17
|
+
# Do not change this
|
18
|
+
channel: 'Workarea_SP'
|
19
|
+
)
|
17
20
|
)
|
18
21
|
else
|
19
22
|
self.gateway = ActiveMerchant::Billing::BogusBraintreeGateway.new
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workarea-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
|
- Eric Pigeon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workarea
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
- !ruby/object:Gem::Version
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
|
-
rubygems_version: 3.0.
|
163
|
+
rubygems_version: 3.0.3
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: Braintree integration for Workarea Commerce Platform
|