test pna views

This commit is contained in:
Sayyid Hamid Mahdavi 2025-05-13 20:19:21 +03:30
parent 44a0e0305b
commit 2602ecaebf

View file

@ -20,6 +20,8 @@ class PNAClient:
# "Originator": phone_number, # optional
}
print(data)
response = requests.post(self.normal_sale_request_url, json=data)
print(response.json())
@ -50,6 +52,8 @@ class PNAClient:
"Token": token
}
print(data)
response_json_sample = {
"Status": "0",
"CardNumberMasked ": "627412******2424",
@ -58,6 +62,7 @@ class PNAClient:
}
response = requests.post(self.normal_sale_confirm_url, json=data)
print(response.json())
return response.json()
def request_normal_sale_reverse(self, token):