bills-payment 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bills-payment/actions/post.rb +9 -3
- 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: fbdada38587d255bb81a48790b34f8d9fa5ee000f5c6f44114c7bca37688b111
|
4
|
+
data.tar.gz: fa5a23da66731aaa499c3e6ea49590eaba0325379ed5804927453ea011a0c1f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 229999c033e8d6b6d24d30ba189c108e9821f53a25bfc4ce13e4e6e3d004462b47bc2c8d33e05f4e95c7d8e395a4098d18b26ee0be4fca67928250578868b624
|
7
|
+
data.tar.gz: a99f925cb83fd51c73ad42a72e19d7cd6da7a708461e7313c88f506f9c3bfa5db09defd0089cfde500f36caddc025dee9a4ce68db43524608ce240f8563669a2
|
@@ -5,18 +5,24 @@ module BillsPayment
|
|
5
5
|
|
6
6
|
def load_category
|
7
7
|
api_url = "#{api_url}/categories"
|
8
|
-
response = BillsPayment.request(api_url, :post)
|
8
|
+
# response = BillsPayment.request(api_url, :post)
|
9
|
+
response = RestClient.post 'http://14.98.171.134:9090/billspayment/bill/categories'
|
10
|
+
response = JSON.parse(response.body)
|
9
11
|
end
|
10
12
|
|
11
13
|
def load_billers(id)
|
12
14
|
api_url = "#{api_url}/getbillers/#{id}"
|
13
|
-
response = BillsPayment.request(api_url, :post)
|
15
|
+
# response = BillsPayment.request(api_url, :post)
|
16
|
+
response = RestClient.post "http://14.98.171.134:9090/billspayment/bill/getbillers/#{id}"
|
17
|
+
response = JSON.parse(response.body)
|
14
18
|
end
|
15
19
|
|
16
20
|
# params - id, customerRef, billerId, narration, accountNumber, paymentDate
|
17
21
|
def do_payment(payment_data)
|
18
22
|
api_url = "#{self.api_url}/dopayment"
|
19
|
-
response = BillsPayment.request(api_url, :post, payment_data)
|
23
|
+
# response = BillsPayment.request(api_url, :post, payment_data)
|
24
|
+
response = RestClient.post "http://14.98.171.134:9090/billspayment/bill/dopayment", payment_data
|
25
|
+
response = JSON.parse(response.body)
|
20
26
|
end
|
21
27
|
|
22
28
|
end
|