I will pass the purchase information (e.g. CC) to the bank gateway and get the result using Django in this way through Python.
What would be an effective and safe way to do this?
I read the documentation for this gateway for php, they seem to use this method:
$xml= Some xml holding data of a purchase. $curl = `/usr/bin/curl -s -d 'DATA=$xml' "https://url of the virtual bank POS"`; $data=explode("\n",$curl);
and using $ data, they process if the payment is accepted, rejected, etc.
I want to achieve this in python, for this I did a few searches and there seems to be a python curl app called pycurl so far I have no experience using curls and don't know if this library is suitable for this task. Keep in mind that since this transfer requires security, I will use SSL.
Any suggestion would be appreciated.
source share