paynow_sdk 1.0.3 → 1.0.4

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
  SHA256:
3
- metadata.gz: eb15198c5b1e134c01064571bdd838646871a79291cf71ff81922150f72e4375
4
- data.tar.gz: 2728e0d662dd50adb2714cd5b1efc2cc776b6088dd9c91be3ec20c60f726368a
3
+ metadata.gz: 591801937e8ddabde7485bf4d5a67753554dde0342036aa41c2b885d11036eed
4
+ data.tar.gz: 847fbb25d8b1581c8f4f6e66b495ec9f663601136e6078a7bebe4a028b8d73e8
5
5
  SHA512:
6
- metadata.gz: ac70eaddfc667b108e178a2587bb9b961e24ddda507937d401d461c74db9134cff25e295dd95a2ed7c34cc1293642c613da0a24d1ffb0545830d840e77ae7146
7
- data.tar.gz: cd2b50a6d97c93f36b3451490eb7361c80382ee36461fe06864150d9ff26d8628e9903b53649a1023a959ec1d5e3f1fd7cc36328345f688f150f7d268b302b60
6
+ metadata.gz: ae5bcd5eef063aabc2dc3731c1b8894af6688fcb594a8419c21dc397e405debcc614accff67cf8a8e323990bc7cb350f0b65926101f36893d7ec3f21f104e1d2
7
+ data.tar.gz: bb421728fb3e0f74659bb6ab2f162063f8dabe63b573fedf4fe3982edc742e3ddc44ce3dd16e0c5c8a4f47a50447b235bc250930e2ce7110cd744c9bcf631795
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paynow_sdk (1.0.3)
4
+ paynow_sdk (1.0.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -33,7 +33,7 @@ class StatusResponse
33
33
  @status = data["status"].downcase
34
34
  @paid = @status == "paid"
35
35
  if data.include?("amount")
36
- @amount = data["amount"].round(2)
36
+ @amount = data["amount"]
37
37
  end
38
38
  if data.include?("reference")
39
39
  @reference = data["reference"]
@@ -176,7 +176,7 @@ class Payment
176
176
  for item in @items
177
177
  total += item[1]
178
178
  end
179
- total
179
+ total.round(2)
180
180
  end
181
181
 
182
182
  def info
@@ -1,3 +1,3 @@
1
1
  module PaynowSdk
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paynow_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - marshall nyasha chikari