#NEWLINE# def create_hosted_customer( self , hosted_customer = None , **kwargs ) : #NEWLINE# #INDENT# '\n            eWay Urls : http://www.eway.com.au/developers/api/token\n            Doc       : http://www.eway.com.au/docs/api-documentation/token-payments-field-description.pdf?sfvrsn=2\n\n            creates hosted customer based on CreditCard type details or kwargs\n\n            returns id of newly created customer (112233445566 in test mode)\n        ' #NEWLINE# try : #NEWLINE# #INDENT# if hosted_customer : #NEWLINE# #INDENT# return self . client . service . CreateCustomer ( hosted_customer . Title , hosted_customer . FirstName , hosted_customer . LastName , hosted_customer . Address , hosted_customer . Suburb , hosted_customer . State , hosted_customer . Company , hosted_customer . PostCode , hosted_customer . Country , hosted_customer . Email , hosted_customer . Fax , hosted_customer . Phone , hosted_customer . Mobile , hosted_customer . CustomerRef , hosted_customer . JobDesc , hosted_customer . Comments , hosted_customer . URL , hosted_customer . CCNumber , hosted_customer . CCNameOnCard , hosted_customer . CCExpiryMonth , hosted_customer . CCExpiryYear ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . client . service . CreateCustomer ( ** kwargs ) #NEWLINE# #UNINDENT# #UNINDENT# except WebFault as wf : #NEWLINE# #INDENT# return wf