Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Customer Profile from a Transaction #52

Open
diemuzi opened this issue Mar 20, 2019 · 1 comment
Open

Create a Customer Profile from a Transaction #52

diemuzi opened this issue Mar 20, 2019 · 1 comment
Labels

Comments

@diemuzi
Copy link

diemuzi commented Mar 20, 2019

Following this guide

Python 3.7.2

Returns the following error:
AttributeError: module 'authorizenet.apicontractsv1' has no attribute 'createCustomerProfileFromTransactionResponse'

As a very temporary fix I manually edited the apicontractsv1.py file and added the following lines:

createCustomerProfileFromTransactionResponse = pyxb.binding.basis.element(pyxb.namespace.ExpandedName(Namespace, 'createCustomerProfileFromTransactionResponse'), CTD_ANON_61, location=pyxb.utils.utility.Location('https://apitest.authorize.net/xml/v1/schema/AnetApiSchema.xsd', 3522, 2))

Namespace.addCategoryObject('elementBinding', createCustomerProfileFromTransactionResponse.name().localName(), createCustomerProfileFromTransactionResponse)

It's a very dirty hack, perhaps someone else can review and create a proper PR. Once this line was added, the expected response was received:

Successfully created a customer profile with id: XXXXXXX from transaction id: XXXXXXXXXX

@gnongsie
Copy link
Contributor

Hi,

Thank you for bringing this to our attention. We have a fix in place (#139) and it will be released as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants