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

profileTransAuthCapture invalid child element 'customerProfileId' in namespace #157

Open
TerrePorter opened this issue Nov 14, 2019 · 0 comments

Comments

@TerrePorter
Copy link

So I have this random error showing up that I can't seem to figure out, since the profileTransAuthCapture request does have a customerProfileId in the examples I find.

The error:

The element 'profileTransAuthCapture' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'customerProfileId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'amount' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.

The code is basically from https://github.com/AuthorizeNet/sdk-php/blob/9ebe3336e470a0510f942f344e9d3277b3e73549/doc/CIM.markdown#creating-transactions

// Create Auth & Capture Transaction
$transaction = new AuthorizeNetTransaction;
$transaction->amount = "9.79";
$transaction->customerProfileId = $customerProfileId;
$transaction->customerPaymentProfileId = $paymentProfileId;
$transaction->customerShippingAddressId = $customerAddressId;
     (it doesn't have the line items)
$response = $request->createCustomerProfileTransaction("AuthCapture", $transaction);
$transactionResponse = $response->getTransactionResponse();

This only seems to happen sometimes. Any suggestions, other than upgrade the code lol that is in the works.

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

No branches or pull requests

1 participant