tappay 0.5.0 → 0.5.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tappay.rb +19 -1
  3. data/lib/tappay/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57aaec35e9974656fcb7e4bfa5f17234696fe5dc
4
- data.tar.gz: 7b0c1e539a8088f7493906ba10bf59f03d56b0d4
3
+ metadata.gz: 3aec1ab7717bd91767c0795f5eaa38a626443a76
4
+ data.tar.gz: 7df14fc88c1ba615910935229add7d09f2919a27
5
5
  SHA512:
6
- metadata.gz: '08e8627a46ccb1fa84d8957ce8af23d8074fb9a3ce357ac63be77bfbed75535b8e249364854a461780793fbd98aa40acbac04680abf8c09e3d1f5ed8df92f83a'
7
- data.tar.gz: 101c0b61c6cb17f53b3643dbd688968bc601ea35a266e9493685b472e03745d84b69abe89d80ad05a7fc338fbd8c17018158ead7de9a898693cc83c5e2e6f9d0
6
+ metadata.gz: 05f4d338a3f9dad54b960c85159f4273133757f8897cf0416679970fb37eaae2e1b815a9709c8b89057b8b08b24658a39efcc4d870ec92f16eb1df53db046f48
7
+ data.tar.gz: ae2a99e689958d7712749b9da4f8ec5fd9cc4e36ce1955e7bb0b449539b3bea745498fd55038c225f10bd143fad003e5585ac5c3f3858abeda3bf837008b1bb4
@@ -7,7 +7,9 @@ require 'tappay/pay_by_token'
7
7
  require 'tappay/refund'
8
8
 
9
9
  module TapPay
10
- @@mode = :sandbox
10
+ @@mode = :sandbox
11
+ @@app_id = ''
12
+ @@app_key = ''
11
13
  @@partner_key = ''
12
14
  @@merchant_id = ''
13
15
 
@@ -28,6 +30,14 @@ module TapPay
28
30
  @@merchant_id = merchant_id.to_s
29
31
  end
30
32
 
33
+ def app_id=(app_id)
34
+ @@app_id = app_id
35
+ end
36
+
37
+ def app_key=(app_key)
38
+ @@app_key = app_key
39
+ end
40
+
31
41
  def mode
32
42
  @@mode
33
43
  end
@@ -40,6 +50,14 @@ module TapPay
40
50
  @@merchant_id
41
51
  end
42
52
 
53
+ def app_id
54
+ @@app_id
55
+ end
56
+
57
+ def app_key
58
+ @@app_key
59
+ end
60
+
43
61
  def pay_by_prime(payload, &block)
44
62
  TapPay::PayByPrime.call(payload, &block)
45
63
  end
@@ -1,3 +1,3 @@
1
1
  module TapPay
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tappay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HzChris
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-26 00:00:00.000000000 Z
11
+ date: 2018-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler