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).

Documentation (part 1): enter image description here

Documentation (part 2): enter image description here

Documentation (part 3): enter image description here

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 = ''
    response =

def main():

if __name__ == '__main__':


raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='', port=18443): Max retries exceeded with url: /ecomm2/MerchantHandler/?command=v&amount=5&currency=932&client_ip_addr= (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?

Back to Top