I'm trying to convert a curl into a post on python with requests. I know that you typically write params = ('amount': '125') but this seems to have a header within the params and some nesting which is confusing the shit out of me:
curl -v -X POST https://sandbox.bluesnap.com/services/2/tools/param-
encryption \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<param-encryption xmlns="http://ws.plimus.com">
<parameters>
<parameter>
<param-key>amount</param-key>
<param-value>125.00</param-value>
</parameter>
</parameters>
</param-encryption>'
From: https://support.bluesnap.com/docs/creating-a-hosted-payments-page