csob_payment_gateway 0.0.7 → 0.0.8

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: ea96e4d46b6839e5e205077cc4352872285c63c1
4
- data.tar.gz: 1274cd423da2d02c103f3b1427a31cdd69a5fee0
3
+ metadata.gz: 2d2cc49958b25cd18b72870836fdd222eb4161d0
4
+ data.tar.gz: 42ad52cff89e4af0bc298881cdb779bc873e1101
5
5
  SHA512:
6
- metadata.gz: 449d92efc5d3860a825ed2d7df4045b09ed81d8a74775a63659e2ee086ac0abac509506a4c03adcd39289b849c46930d58754ce36d0f69582ce4209de0a84719
7
- data.tar.gz: 80d961e87befeef2238ff097ed349bcccbae2d86a09f40b30ba163436bf9dd3c2bca62de44c420be5ae18f070d74f161fa6091eefa11e55bba91914c91620a07
6
+ metadata.gz: 4523dd96090642fed17539f41b4c198ca37533918fc2eb77a7b87f14aab403271ecbbab9e4c7f97407bc4686d842342447f295031e0d955ae8834abe53a914a6
7
+ data.tar.gz: 23d9eda1616be1e5abc53fa4df2c7e0d664a42d1528a61c1222ac9982ad32f02011263c2c949d33145441ffe7bf47938a602c7c4b53b834ed2706de6b603d4d9
@@ -39,29 +39,29 @@ module CsobPaymentGateway
39
39
  def payment_status
40
40
  api_status_url = CsobPaymentGateway.configuration.urls["status"]
41
41
 
42
- status_response = RestClient.get gateway_url + api_status_url + get_data
43
- JSON.parse(status_response)
42
+ response = RestClient.get gateway_url + api_status_url + get_data
43
+ JSON.parse(response)
44
44
  end
45
45
 
46
46
  def payment_close
47
47
  api_close_url = CsobPaymentGateway.configuration.urls["close"]
48
48
 
49
- close_response = RestClient.put gateway_url + api_close_url, put_data.to_json, { content_type: :json, accept: :json }
50
- JSON.parse(close_response)
49
+ response = RestClient.put gateway_url + api_close_url, put_data.to_json, { content_type: :json, accept: :json }
50
+ JSON.parse(response)
51
51
  end
52
52
 
53
53
  def payment_reverse
54
54
  api_reverse_url = CsobPaymentGateway.configuration.urls["reverse"]
55
55
 
56
- reverse_response = RestClient.put gateway_url + api_reverse_url, put_data.to_json, { content_type: :json, accept: :json }
57
- JSON.parse(reverse_response)
56
+ response = RestClient.put gateway_url + api_reverse_url, put_data.to_json, { content_type: :json, accept: :json }
57
+ JSON.parse(response)
58
58
  end
59
59
 
60
60
  def payment_refund
61
61
  api_refund_url = CsobPaymentGateway.configuration.urls["refund"]
62
62
 
63
- refund_response = RestClient.put gateway_url + api_refund_url, put_data.to_json, { content_type: :json, accept: :json }
64
- JSON.parse(refund_response)
63
+ response = RestClient.put gateway_url + api_refund_url, put_data.to_json, { content_type: :json, accept: :json }
64
+ JSON.parse(response)
65
65
  end
66
66
 
67
67
  def verify_response
@@ -1,3 +1,3 @@
1
1
  module CsobPaymentGateway
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csob_payment_gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiří Kratochvíl