Profile validation email generated by authorize.net doesn't include the customer email

Created on 18 June 2019, about 6 years ago
Updated 9 September 2025, 2 days ago

Problem/Motivation

At some point the profile validation email generated by authorize.net was including an email address but since 8.x-1.0 was released the validation email just contain email@example.com. The error looks like https://community.developer.authorize.net/t5/Integration-and-Testing/CIM... but I am not sure if it's the same.

I am wondering if it has to do with the SDK or this module. I am wondering if this has something to do with the comment at https://git.drupalcode.org/project/commerce_authnet/blob/8.x-1.x/src/Plu...

// Due to their being a possible duplicate record for the customer
      // profile, we cannot attach the payment profile in the initial request.
      // If we did, it would invalidate the token generated by Accept.js and
      // not allow us to reconcile duplicate payment methods.
      //
      // So we do not attach a payment profile and run two requests, and make
      // sure no validation mode is executed.

Cause the email get generated after the initial request at line 667. The generated email looks like:

From: Auto-Receipt <noreply@mail.authorize.net>
Sent: Friday, November 9, 2018 9:16 AM
To: CAD Payments <marchant@email.com>
Subject: Merchant Email Receipt

************* TEST MODE *************

======== SECURITY STATEMENT ==========
It is not recommended that you ship product(s) or otherwise grant services relying solely upon this e-mail receipt.

======== GENERAL INFORMATION =========
Merchant : MyMerchantName (12356789)
Date/Time : 9-Nov-2018 9:16:04 EST

======== ORDER INFORMATION =========
Invoice : none
Description : Test transaction for ValidateCustomerPaymentProfile.
Amount : 1.00 (CAD)
Payment Method: Visa xxxx1111
Transaction Type: Authorization Only

============= Line Items ===============

============= RESULTS ===============
Response : This transaction has been approved.
Auth Code : 000000
Transaction ID : 0
Address Verification : AVS Not Applicable

=== CUSTOMER BILLING INFORMATION ===
Customer ID : none
First Name : CustomerFirstName
LastName : CustomerLastName
Company : Heritage Coffee
Address : 123 Customer street
City: London
State/Province : ON
Zip/Postal Code : XXX XXX
Country : CA
Phone : 
Fax : 
E-Mail : email@example.com

=== CUSTOMER SHIPPING INFORMATION ===
First Name : 
Last Name : 
Company : 
Address : 
City : 
State/Province : 
Zip/Postal Code : 
Country :  

====== ADDITIONAL INFORMATION ======
Tax : 0.00
Duty: 0.00
Freight : 0.00
Tax Exempt : No
PO Number : none

Instead of email@example.com it use to include the proper merchant email.

Proposed resolution

Remaining tasks

User interface changes

None

API changes

Maybe the SDK need to be updated, somehow.

Data model changes

N/A

Release notes snippet

πŸ› Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada nikathone Ontario

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024