Python Integration the Payment System of Bank
I am trying to integrate the Bank's payment system on my Django-based website. As it said in documentation, I need to send parameters to their server (and then the new window should appear and the client should fill his card credentials there).
I am new in integration such services (payment) and need some help or broad explanation what to do, why do to that, and how.
Additionally, I was pretty sure that the following code wouldn't work fine but why.
import requests
def send_request():
url = 'https://ecomm.pashabank.az:18443/ecomm2/MerchantHandler/?command=v&amount=5¤cy=932&client_ip_addr=167.184.1.132&msg_type=SMS'
response = requests.post(url)
print(response)
def main():
send_request()
if __name__ == '__main__':
main()
causes
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='ecomm.pashabank.az', port=18443): Max retries exceeded with url: /ecomm2/MerchantHandler/?command=v&amount=5¤cy=932&client_ip_addr=167.172.184.123&msg_type=SMS (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)')))
Overall, I need help of everything happening behind the scenes. Huge thanks in advance guys!
Note: I have also received some certifications from bank (I assume to assure the connection safety). But how I use it and when?