Skip to content

Create a Customer Profile from a Transaction #52

Open
@diemuzi

Description

@diemuzi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy