Posts: 3
Registered: ‎02-17-2017

Python SDK: how to set billTo fields

None of the code samples at


Demonstrate setting "billTo" fields.


How do I use the python SDK to send billing address information for verification?



For example: how would I send the customer's zip code so that I receive an error message if it's wrong?

Posts: 2,765
Topics: 57
Kudos: 248
Blog Posts: 67
Registered: ‎12-05-2011

Re: Python SDK: how to set billTo fields

Hello @superseed


If you open an issue on GitHub, it will notify the team directly who can add the information you need.



All Star
Posts: 699
Registered: ‎11-03-2016

Re: Python SDK: how to set billTo fields

Hi @superseed,


I'm not quite a Python expert, so I may have missed something here, but try this:



    // Set the customer's Bill To address
billTo = apicontractsv1.customerAddressType();
billTo.address("14 Main Street");"Pecan Springs");
// add the last line to add the billTo to the transactionrequest transactionrequest = apicontractsv1.transactionRequestType() transactionrequest.transactionType = "authCaptureTransaction" transactionrequest.amount = amount transactionrequest.payment = payment
transactionrequest.billTo = billTo


I'd still encourage you to open an issue in the sample code repository on GitHub so that the relevant people can be notified to add examples to each of the samples.