Пример #1
0
 def validate_records(self, data):
     URL = urljoin(BASE_URL(self.url),
                   "/nibss/BVNPlaceHolder/ValidateRecords")
     headers = self.headers
     body = data["body"]
     return encrypted_request(headers, URL, data["Aes_key"], data["Iv_key"],
                              body)
Пример #2
0
 def InterbankTransferReq(self, body):
     url = urljoin(BASE_URL(self.url), "/sterling/accountapi/api/Spay/InterbankTransferReq")
     header = self.headers
     apiResponse = calls("post", url, None, json.dumps(body), header)
     return (apiResponse)
Пример #3
0
 def verify_fingerprint(self, data):
     URL = urljoin(BASE_URL(self.url), "/nibss/fp/VerifyFingerPrint")
     headers = self.headers
     body = data["body"]
     return encrypted_request(headers, URL, data["Aes_key"], data["Iv_key"],
                              body)
Пример #4
0
 def bvn_placeholder_reset(self):
     headers = self.header
     URL = urljoin(BASE_URL(self.url), "/nibss/BVNPlaceHolder/Reset")
     return request(headers, URL)
Пример #5
0
 def verify_single(self, data):
     URL = urljoin(BASE_URL(self.url), "/nibss/bvnr/VerifySingleBVN")
     headers = self.headers
     body = data["body"]
     return encrypted_request(headers, URL, data["Aes_key"], data["Iv_key"],
                              body)
Пример #6
0
 def bvn_watchlisted(self, data):
     URL = urljoin(BASE_URL(self.url), "/nibss/bvnr/IsBVNWatchlisted")
     headers = self.headers
     body = data["body"]
     return encrypted_request(headers, URL, data["Aes_key"], data["Iv_key"],
                              body)
 def reset(self):
     headers = self.header
     URL = urljoin(BASE_URL(self.url), "/nibss/bvnr/Reset")
     return request(headers, URL)
Пример #8
0
 def InterbankNameEnquiry(self, query):
     url = urljoin(BASE_URL(self.url),
                   "/sterling/TransferAPIs/api/Spay/InterbankNameEnquiry")
     header = self.headers
     apiResponse = calls("get", url, query, "", header)
     return apiResponse