paymentsds-mpesa 0.1.0.pre.alpha.17 → 0.1.0.pre.alpha.18
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 +4 -4
- data/lib/paymentsds/mpesa/service.rb +3 -3
- data/lib/paymentsds/mpesa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88aa84672598eae578bb28ba63afdc58e6d95a03aebad8de4f04b4135a1075aa
|
|
4
|
+
data.tar.gz: 4567a1ed8243c44b7bc0b091858152a67e65adacbd7757df5191375104f00ab8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9c836c0f1205861cdcdf710ecb85eaca1e8ef22c8db55e0d6a886f17bdfbc6db92c0b751f2416235ce1fce5bc03475f5f4dbbc2f01c298701588a5c369f069bf
|
|
7
|
+
data.tar.gz: 1e4f4bd904bc8319fe0498a2ac01181b51a411dff0996be85e95441ac57159467a062382af2b853f6c39260496dfe715ea01ab506af791331c73eddf6ee22171
|
|
@@ -155,19 +155,19 @@ module Paymentsds
|
|
|
155
155
|
case operation[:method]
|
|
156
156
|
when :get
|
|
157
157
|
response = http_client.get(request_data[:path]) do |req|
|
|
158
|
-
req.params = request_data
|
|
158
|
+
req.params = request_data[:body]
|
|
159
159
|
req.options.timeout = request_data[:timeout]
|
|
160
160
|
end
|
|
161
161
|
|
|
162
162
|
when :post
|
|
163
163
|
response = http_client.post(request_data[:path]) do |req|
|
|
164
|
-
req.body = request_data
|
|
164
|
+
req.body = request_data[:body].to_json
|
|
165
165
|
req.options.timeout = request_data[:timeout]
|
|
166
166
|
end
|
|
167
167
|
|
|
168
168
|
when :put
|
|
169
169
|
response = http_client.put(request_data[:path]) do |req|
|
|
170
|
-
req.body = request_data
|
|
170
|
+
req.body = request_data[:body].to_json
|
|
171
171
|
req.options.timeout = request_data[:timeout]
|
|
172
172
|
end
|
|
173
173
|
end
|