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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c697aa884354473d47e10667b729fb443c41cea9135a9cfd6c3b2637787574f1
4
- data.tar.gz: 22ccbd076be26631dfa1111303535f2f1e88e10cb80258fc7799e8ebf77a8cba
3
+ metadata.gz: 8ae05c1f2b30e466ed84f33491cfa940a05d628be2efa201c61036093b996573
4
+ data.tar.gz: ae57c9b32b8a8bb51f81f89a1bc64b6e81906c46e935e09412540fa60fa8088f
5
5
  SHA512:
6
- metadata.gz: 7e0f0060c16e584f04fd885dbf38eb82801ba943ae9458de3d977c1dabac919fceb527612082ad53f67be2cbcd29d14091b908380a9851fedbde3d5a03a82423
7
- data.tar.gz: '094cbc9983291d79cacbb2a9620947e0582d6988c5f3577ab3d586a07c8352c0169d1e45114aae6646cca9a09861e20a6967799fbabb5fe23877bbc739025fe2'
6
+ metadata.gz: 1637e94ac20b7a35b36008345bf0efe18c4aec75c3fe74edaa0df089395828e23a5c4c84c59b1cac9f98796551c6933d68ed752cf339d102d25575e3219470ea
7
+ data.tar.gz: 86fff7a7e9e64dbe2e1bb9b86d050891fa3a7e8db91eae3f5ae52c36ffab28ae1929e548d3ed2940b84d65c06057359f82fd640319910d123bb85e5a098d743c
@@ -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
 
@@ -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 PayPal revenue attribution
7
- ActiveMerchant::Billing::BraintreeBlueGateway.application_id = 'Workarea_SP_PCP'
8
- ActiveMerchant::Billing::BraintreeOrangeGateway.application_id = 'Workarea_SP_PCP'
9
- ActiveMerchant::Billing::BogusBraintreeGateway.application_id = 'Workarea_SP_PCP'
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
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module Braintree
3
- VERSION = "1.1.1"
3
+ VERSION = "1.1.2"
4
4
  end
5
5
  end
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.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-02-27 00:00:00.000000000 Z
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.6
163
+ rubygems_version: 3.0.3
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: Braintree integration for Workarea Commerce Platform