od-payments 0.1.5 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/od/payments/resources/charge.rb +3 -11
- data/lib/od/payments/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d27cc5d3a06d86960c26449056cfa427456a14a30b87858c8478b7ae647ea9e4
|
4
|
+
data.tar.gz: b6080506e5e43e9cdd134be2eb5de5866456654f3de84c650a772d3d55f4d526
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d58161008e6e53ef318c583a0006082d76817da95dea3109fe927a561238dcec32ca36e46c93afe7fd98b2c31bb1c4e355cb3f4f9a1d177e529f752bb76e730f
|
7
|
+
data.tar.gz: 7c593ad9aae9c5fab2d867cac88e35c75bc54594a13093173bc85a7c7febcfed6fc25f43570c3698d2b9f8954d81284c1870787ad3c5e593f05d55207a6e9b87
|
data/Gemfile.lock
CHANGED
@@ -5,17 +5,9 @@ module Od
|
|
5
5
|
case Od::Payments.adapter
|
6
6
|
when :stripe
|
7
7
|
Stripe::PaymentIntent.create({
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
payment_method: option[:token_payment],
|
12
|
-
statement_descriptor: 'Divan Medical',
|
13
|
-
description: option[:description] || '',
|
14
|
-
off_session: option[:off_session] || false,
|
15
|
-
confirm: option[:confirm] || true,
|
16
|
-
capture_method: option[:capture_method] || 'manual',
|
17
|
-
setup_future_usage: option[:setup_future_usage]
|
18
|
-
})
|
8
|
+
currency: 'usd',
|
9
|
+
amount: (amount * 100).to_i,
|
10
|
+
}.merge(option))
|
19
11
|
end
|
20
12
|
rescue Stripe::CardError => e
|
21
13
|
case Od::Payments.adapter
|
data/lib/od/payments/version.rb
CHANGED