我尝试使用Python和Flask与Sagepay进行表单集成。在
流程的一部分是执行以下操作:The Crypt FieldThe Crypt field should contain all the other transaction information in plain text as Name=Value fields separated by ‘&’ characters. Ensure that all mandatory fields are present and that there are no spaces after the ‘&’ character.
This string should then be encrypted using AES(block size 128-bit) in CBC mode with PKCS#5 padding using the provided password as both the key and initialisation vector and encode the result in hex (making sure the letters are in upper case).
Prependthe‘@’signtothebeginningoftheencodedresult.*
我完全无法做到这一点-我已经按照以下部分构建了url:VendorTxCode=TxCode-1310917599-223087284&Amount=36.95&Currency=GBP&Description=description&CustomerName=Fname Surname&CustomerEMail=customer@example.com&BillingSurname=Surname&BillingFirstnames=Fname&BillingAddress1=B