Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On the checkout page, after clicking Continue to review, the following error message is displayed:
We encountered an unexpected error processing your payment method. Please try again later.
When I check my recent log messages, there is:
Type: commerce_authnet
User: Anonymous (not verified)
Message: Received response with code Error from Authorize.net: E00003: The element 'profile' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'email' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'paymentProfiles, shipToList' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
and after that:
Type: commerce_payment
User: Anonymous (not verified)
Message: Unable to create customer profile.
The first question I have is, if the customer is clicking Continue to review, why is it trying to talk to Authorize.Net before they have a chance to verify all of the entered information?
Second, why is a customer profile trying to be created when I have Login or continue as guest disabled in the Checkout flow?
Comments
Comment #2
Rounder CreditAttribution: Rounder commentedCorrected version level.
Comment #3
Rounder CreditAttribution: Rounder commentedComment #4
bojanz CreditAttribution: bojanz at Centarro commentedThis is a duplicate of #2892467: Does not support anonymous checkout.
You'll have to disable anonymous checkout to use the AuthNet beta, until Accept.js support is finished.
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedComment #6
chrisrockwell CreditAttribution: chrisrockwell commentedWe do not allow anonymous checkout so I don't think this is related.
I created #2918431: Created billTo object should not include fields that aren't available/necessary for customers location without seeing this one. I'm getting a few different errors, including:
Received response with code Error from Authorize.net: E00003: The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:address' element is invalid - The value XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX is invalid according to its datatype 'String' - The actual length is greater than the MaxLength value.
Received response with code Error from Authorize.net: E00003: The element 'billTo' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'state' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'phoneNumber, faxNumber, email' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.
A cursory glance shows it's only happening with non-US addresses (Romania and Turkey are the two most recent).
I think this is critical since it appears non-US card holders can not checkout.
Comment #7
chrisrockwell CreditAttribution: chrisrockwell commentedSorry - at quick glance this seemed like the same issue, now I believe these are different.