spree/spree — Issue #779: Authorize.net CIM Transaction Fail Missing Invoice Number (60.2)
Author: cleverlemming
Created: 2011-11-18 01:23:55+00:00
State: open

Spree 60.x is not sending required info for authorize.net CIM. I see that this is addressed in lib/spree_core/authorize_net_cim_hack.rb, but, in my case only the customer billing information and credit card info is being sent. The shipping address fields are blank and I get a E00027 "Invoice number is required" from the payment gateway.

Payment gateway info in Spree is configured as Gateway::authorizenetCIM. No problems using Gateway::authorizenet (w/o CIM) on another gateway that doesn't have CIM enabled. Current Spree version is 60.2.

---------gateway response-------------------

Gateway Error: E00027 - Invoice Number is required.
Gateway Error
--- !ruby/object:ActiveMerchant::Billing::Response
authorization: "0"
avs_result:
code: P
postal_match: Y
street_match: N
message: Postal code matches, but street address not verified.
cvv_result:
code:
message:
fraud_review:
message: E00027 - Invoice Number is required.
params:
messages:
result_code: Error
message:
code: E00027
text: Invoice Number is required.
direct_response:
tax: ""
city: Correct string was supplied here (not quoted).
address: Correct string was supplied here (not quoted).
company: ""
approval_code: ""
ship_to_country: ""
ship_to_zip_code: ""
ship_to_city: ""
ship_to_last_name: ""
purchase_order_number: ""
duty: ""
country: US
zip_code: "Correct string was supplied here."
cardholder_authentication_verification_response: ""
method: CC
amount: "1.00"
transaction_id: "0"
avs_response: P
response_code: "3"
freight: ""
transaction_type: auth_only
invoice_number: ""
response_reason_code: "33"
response_subcode: "2"
ship_to_first_name: ""
fax: ""
phone: ""
last_name: Correct string was supplied here (not quoted).
md5_hash: Correct string was supplied here (not quoted).
ship_to_address: ""
email_address: ""
customer_id: "xxx.9091"
raw: 3,2,33,Invoice Number is required.,,P,0,,,1.00,CC,auth_only,xxx.9091,my full name,,xxx,my city,xx,xxxxx,US,,,,,,,,,,,,,,,,,207BCBBF78E85CF174C87AE286B472D2,,,,,,,,,,,,,XXXXXXXX,Visa,,,,,,,,,,,,,,,,
ship_to_state: ""
order_description: ""
message: Invoice Number is required.
card_code: ""
tax_exempt: ""
ship_to_company: ""
state:
first_name: Correct string was supplied here (not quoted).
success: false
test: false
Redirected to https...

(Note: Andrewmp1 has requested this as a feature here: https://github.com/spree/spree/issues/674 )