Skip to content
Browse files

* As of Jan 31, 2014 Authorize.Net stopped accepting a transaction ID

  on transaction types that don't need it. That should be AUTH_ONLY
  and AUTH_CAPTURE, though I am waiting on a definitive pronouncement
  from them.
  • Loading branch information...
1 parent d155882 commit fa1459c62982dc7bd57bb92f5f1b391ec111be2c Mike Heins committed Jan 31, 2014
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/Vend/Payment/AuthorizeNet.pm
View
9 lib/Vend/Payment/AuthorizeNet.pm
@@ -505,6 +505,15 @@ sub authorizenet {
push @query, "$key=$val";
}
+ my %no_trans_id = (
+ AUTH_CAPTURE => 1,
+ AUTH_ONLY => 1,
+ );
+
+ ## As of Jan 31, 2014 AuthorizeNet errors out with x_Trans_ID on transaction type that
+ ## doesn't need it
+ delete $query{x_Trans_ID} if $no_trans_id{ $query{x_Type} };
+
#::logDebug("Authorizenet query: " . ::uneval(\%query));
$opt->{extra_headers} = { Referer => $referer };

0 comments on commit fa1459c

Please sign in to comment.
Something went wrong with that request. Please try again.