lucid_shopify 0.13.1 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lucid_shopify/create_charge.rb +14 -3
- data/lib/lucid_shopify/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11642f45e00463fcc89f57bb19d198192870ba8da5d08f4b58c15b6d81b9fc17
|
4
|
+
data.tar.gz: 27f2562f2e91badf805f28f670d43c5420b76b0cb3b68c0ca1982244f4762dce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d881b0f7703e965ff3b1a33117ce4f9a847189b0b7f24614565363e3ff183fab8d2b2c91acad11e7b51a7c3fa9b658b0029ad8cceba90d5d7118156b084456a4
|
7
|
+
data.tar.gz: b418d1c1418301ea8142e03c928fb07687df36ff717d3c3e2ab79e7c3df726ffb709a4d9e5b3594be45461818941713d8a372f8f691d6ce9f634ab3fced10f94
|
@@ -20,11 +20,22 @@ module LucidShopify
|
|
20
20
|
# @return [Hash] the pending charge
|
21
21
|
#
|
22
22
|
def call(request_credentials, charge)
|
23
|
-
data = @client.post_json(request_credentials, 'recurring_application_charges',
|
24
|
-
'return_url' => LucidShopify.config.billing_callback_uri
|
25
|
-
}.merge(charge.transform_keys(&:to_s)))
|
23
|
+
data = @client.post_json(request_credentials, 'recurring_application_charges', post_data(charge))
|
26
24
|
|
27
25
|
data['recurring_application_charge']
|
28
26
|
end
|
27
|
+
|
28
|
+
#
|
29
|
+
# @param charge [Hash]
|
30
|
+
#
|
31
|
+
# @return [Hash]
|
32
|
+
#
|
33
|
+
private def post_data(charge)
|
34
|
+
{
|
35
|
+
'recurring_application_charge' => {
|
36
|
+
'return_url' => LucidShopify.config.billing_callback_uri
|
37
|
+
}.merge(charge.transform_keys(&:to_s)),
|
38
|
+
}
|
39
|
+
end
|
29
40
|
end
|
30
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lucid_shopify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelsey Judson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|