secupay_ruby 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ef8e4fe744fb131ec8cbe0c7dd071a3326edd4a
4
- data.tar.gz: 17a0fb0232391729a86e718128374199d982e235
3
+ metadata.gz: 5c4e28302d86c02714e3205d8eb60243caacdc85
4
+ data.tar.gz: 422381aaa97b9f4d919a99826a19d12c66c7b2fe
5
5
  SHA512:
6
- metadata.gz: 44fe51826f5628950acbe138767f4356e362bc6d9e0dd9969a50dabbe83ccc77bcf13340c79b0ed6e78339add158882b4ad446ce30deb6456870f6f612791541
7
- data.tar.gz: ac832137521dbdb54c41c9e8a4827c88bd097f54e596eadc1f15e9fbffda9e8405a8034867cd6224a2414342cd4bf558a377746a58a383c805d111f06339d979
6
+ metadata.gz: 6b78e8e5fe5eef288a9fd7d24d936805c94f516448a9eb00637b2f88d0e59271c147d8ed48f719a6553be7d345255c99ca3d38049a568b99f95e693451f69630
7
+ data.tar.gz: 801c4f9a27b0856df23564215383465d03f2271bd23a6dcc8ca72f76514855addb1a34b3bd1c51672eb2bebecd0e22290b0d5eb13367b4e7ff4f1517f50ad242
@@ -35,7 +35,7 @@ module SecupayRuby
35
35
  !hash.nil?
36
36
  end
37
37
 
38
- def init(amount:, payment_type:, demo: 0)
38
+ def init(amount:, payment_type:, demo: 0, user: nil)
39
39
  @response = nil
40
40
 
41
41
  @amount = amount
@@ -50,6 +50,7 @@ module SecupayRuby
50
50
  demo: demo,
51
51
  payment_type: payment_type
52
52
  }
53
+ params = params.merge(user.to_api_fields) if user
53
54
 
54
55
  @response = SecupayRuby::Requests::Init.post(api_key: api_key,
55
56
  payment: self,
@@ -1,3 +1,3 @@
1
1
  module SecupayRuby
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secupay_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Breuker