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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 863b9b04dd9189173d0382f43bae9b7e5860e6140b1ecf07fb5b818c11ca3178
|
4
|
+
data.tar.gz: fced4c71837f469c500da6b733d902c9f0dd13a1b6d97a29615d8b9c0bfd9956
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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, {}
|
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, {}
|
48
|
+
provider.void(response_code, {})
|
49
49
|
end
|
50
50
|
|
51
51
|
def cancel(response_code)
|
52
|
-
provider.void(response_code, {}
|
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
|
-
|
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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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
|
-
|
18
|
-
|
19
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2019-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|