Brilliant. :)
Thank you, I'm going to give this a shot.

On Jun 3, 3:33 pm, howesc <how...@umich.edu> wrote:
> skip the XML, use SOAP.  that's my solution:
>
>    profile_id = 42
>    merchantAuthentication={'name':api_login_id,
>                         'transactionKey':transaction_key}
>
>     from pysimplesoap.client import SoapClient
>     #@TODO: can i cache the SoapClient object?
>     client =
> SoapClient(wsdl="https://apitest.authorize.net/soap/v1/Service.asmx?WSDL";,
> exceptions=False)
>
>     cust_profile = client.GetCustomerProfile( \
>         merchantAuthentication=merchantAuthentication,
>         customerProfileId=profile_id)
>
>     return cust_profile
>
> and now your response is a dict and you can just use it.   i'm in the middle
> of an authorize.net CIM and AIM implementation, so lemme know if you have
> more questions, we can figure this out!
>
> cfh

Reply via email to