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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c97a2fc529188e87cc41af4be4f41547f0f66584774aad0e01eac9485300804
4
- data.tar.gz: '0879c121643700cda7bbf423ad66e843075da715eac21867188c80ae58425cbc'
3
+ metadata.gz: d27cc5d3a06d86960c26449056cfa427456a14a30b87858c8478b7ae647ea9e4
4
+ data.tar.gz: b6080506e5e43e9cdd134be2eb5de5866456654f3de84c650a772d3d55f4d526
5
5
  SHA512:
6
- metadata.gz: 72ec12809a1b1bc60e3e3a6b9655aa5d86226a6229652b4e76bfedbd3f13055805bc81158b70a99cce877bf992cfca91e729360cb4453fd3bae323d1305cfcae
7
- data.tar.gz: a98cd3d3f11ebcd69e8d20a7c93055e749bf5379752264d6d3e8fafefcc376fa8b1b98d4e1d39df0d84bdd9b152baca00734a3db6a5c4726de1c20b005b2d623
6
+ metadata.gz: d58161008e6e53ef318c583a0006082d76817da95dea3109fe927a561238dcec32ca36e46c93afe7fd98b2c31bb1c4e355cb3f4f9a1d177e529f752bb76e730f
7
+ data.tar.gz: 7c593ad9aae9c5fab2d867cac88e35c75bc54594a13093173bc85a7c7febcfed6fc25f43570c3698d2b9f8954d81284c1870787ad3c5e593f05d55207a6e9b87
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- od-payments (0.1.5)
4
+ od-payments (0.1.8)
5
5
  stripe (~> 5.22.0)
6
6
 
7
7
  GEM
@@ -5,17 +5,9 @@ module Od
5
5
  case Od::Payments.adapter
6
6
  when :stripe
7
7
  Stripe::PaymentIntent.create({
8
- amount: (amount * 100).to_i,
9
- currency: 'usd',
10
- customer: option[:customer_id],
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
@@ -1,5 +1,5 @@
1
1
  module Od
2
2
  module Payments
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: od-payments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Onward Web Development