spree_gateway 3.6.5 → 3.6.7

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: 45ebf88e0291245508aaa7e9d363a78003284ad6092372b45bbd0c3548da1f43
4
- data.tar.gz: ce11757b811330f039063c710c9532bc145341562d110f80579817b71b8b2fb7
3
+ metadata.gz: 863b9b04dd9189173d0382f43bae9b7e5860e6140b1ecf07fb5b818c11ca3178
4
+ data.tar.gz: fced4c71837f469c500da6b733d902c9f0dd13a1b6d97a29615d8b9c0bfd9956
5
5
  SHA512:
6
- metadata.gz: 90c4d92e24b00d8cf1db041b093a774493008b90a973af9ea91d0e4ddf0bbc2bd3666b7bd8e310d4ba0f92208219f805ddeb9055dcdab5b3b9eb8628609f8ee8
7
- data.tar.gz: da3e8fd208f11959336f6218b599ee4335a79635f9610796f75a55fb65e6523d4c62ca91bab56832502d125dbbcd3d1824591af5a4a05604b2cb9eae1d7cf6b6
6
+ metadata.gz: a6d568542a74317a781ac77c4c059aea3550370932ea9a0966235fa1d87836512975a59a08b092250a9d9b328ad024b9b34c8854ea8d25924b0b996987b38ff1
7
+ data.tar.gz: 0acdd438af4eae4f5837d4c4db21ee345e13b49a6ed41e98b1e79484f1f75ecf38be69f39d0c4532993f0ae32e3f5b642398ba46e428c811af4c747266bb9362
@@ -41,15 +41,15 @@ module Spree
41
41
  end
42
42
 
43
43
  def credit(money, creditcard, response_code, gateway_options)
44
- provider.refund(money, response_code, {}, gateway_options)
44
+ provider.refund(money, response_code, {})
45
45
  end
46
46
 
47
47
  def void(response_code, creditcard, gateway_options)
48
- provider.void(response_code, {}, gateway_options)
48
+ provider.void(response_code, {})
49
49
  end
50
50
 
51
51
  def cancel(response_code)
52
- provider.void(response_code, {}, gateway_options)
52
+ provider.void(response_code, {})
53
53
  end
54
54
 
55
55
  def create_profile(payment)
@@ -1,24 +1,17 @@
1
1
  module ActiveMerchant
2
2
  module Billing
3
3
  module StripeGatewayDecorator
4
- def self.prepended(base)
5
- base.class_eval do
6
- alias_method :original_headers, :headers
7
- alias_method :original_add_customer_data, :add_customer_data
4
+ private
8
5
 
9
- private
10
-
11
- def headers(options = {})
12
- headers = original_headers(options)
13
- headers['User-Agent'] = headers['X-Stripe-Client-User-Agent']
14
- headers
15
- end
6
+ def headers(options = {})
7
+ headers = super
8
+ headers['User-Agent'] = headers['X-Stripe-Client-User-Agent']
9
+ headers
10
+ end
16
11
 
17
- def add_customer_data(post, options)
18
- original_add_customer_data(post, options)
19
- post[:payment_user_agent] = "SpreeGateway/#{SpreeGateway.version}"
20
- end
21
- end
12
+ def add_customer_data(post, options)
13
+ super
14
+ post[:payment_user_agent] = "SpreeGateway/#{SpreeGateway.version}"
22
15
  end
23
16
  end
24
17
  end
@@ -1,5 +1,5 @@
1
1
  module SpreeGateway
2
2
  def self.version
3
- '3.6.5'
3
+ '3.6.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.5
4
+ version: 3.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spree Commerce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-30 00:00:00.000000000 Z
11
+ date: 2019-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core