csob_payment_gateway 0.0.8 → 0.0.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09d831eb559e2db05e7d5c5e7cad275a5621370b
|
4
|
+
data.tar.gz: 2040d520664a9dec110aa54238cfc1eda61cf843
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f707afbc8e9e2f14af6639ef83681af1c39b5c018e9ffbd37de66ff494215a0d49978cc21977ae1b4dd0cf23e55a21a9b424947eed41ac94144b191dd70bfa12
|
7
|
+
data.tar.gz: 2c5e0779ee9f4e54faf3ba5a918f6690fbbff9894f809cd84af513eb5f9b565aea17f2dfd5807410ae8e7358ee7ac0640e92b1785145542ea1422c5ca0a5a8fe
|
@@ -40,28 +40,28 @@ module CsobPaymentGateway
|
|
40
40
|
api_status_url = CsobPaymentGateway.configuration.urls["status"]
|
41
41
|
|
42
42
|
response = RestClient.get gateway_url + api_status_url + get_data
|
43
|
-
JSON.parse(response)
|
43
|
+
self.response = 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
49
|
response = RestClient.put gateway_url + api_close_url, put_data.to_json, { content_type: :json, accept: :json }
|
50
|
-
JSON.parse(response)
|
50
|
+
self.response = 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
56
|
response = RestClient.put gateway_url + api_reverse_url, put_data.to_json, { content_type: :json, accept: :json }
|
57
|
-
JSON.parse(response)
|
57
|
+
self.response = 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
63
|
response = RestClient.put gateway_url + api_refund_url, put_data.to_json, { content_type: :json, accept: :json }
|
64
|
-
JSON.parse(response)
|
64
|
+
self.response = JSON.parse(response)
|
65
65
|
end
|
66
66
|
|
67
67
|
def verify_response
|