test pna views
This commit is contained in:
parent
44a0e0305b
commit
2602ecaebf
1 changed files with 5 additions and 0 deletions
|
|
@ -20,6 +20,8 @@ class PNAClient:
|
||||||
# "Originator": phone_number, # optional
|
# "Originator": phone_number, # optional
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print(data)
|
||||||
|
|
||||||
response = requests.post(self.normal_sale_request_url, json=data)
|
response = requests.post(self.normal_sale_request_url, json=data)
|
||||||
print(response.json())
|
print(response.json())
|
||||||
|
|
||||||
|
|
@ -50,6 +52,8 @@ class PNAClient:
|
||||||
"Token": token
|
"Token": token
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print(data)
|
||||||
|
|
||||||
response_json_sample = {
|
response_json_sample = {
|
||||||
"Status": "0",
|
"Status": "0",
|
||||||
"CardNumberMasked ": "627412******2424",
|
"CardNumberMasked ": "627412******2424",
|
||||||
|
|
@ -58,6 +62,7 @@ class PNAClient:
|
||||||
}
|
}
|
||||||
|
|
||||||
response = requests.post(self.normal_sale_confirm_url, json=data)
|
response = requests.post(self.normal_sale_confirm_url, json=data)
|
||||||
|
print(response.json())
|
||||||
return response.json()
|
return response.json()
|
||||||
|
|
||||||
def request_normal_sale_reverse(self, token):
|
def request_normal_sale_reverse(self, token):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue