Skip to content

Commit 5d3625e

Browse files
committed
Removed logic in refundTransaction that passes
only the last 4 digits of credit card number. This makes it possible to do ad-hoc refunds that aren't tied to an existing transaction.
1 parent f743815 commit 5d3625e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/AuthorizeNetGateway.js

-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ AuthorizeNetGateway.prototype.refundTransaction = function refundTransaction (tr
313313

314314

315315
return fullOptions.then(function (fullOpt) {
316-
fullOpt.creditCardNumber = fullOpt.creditCardNumber.substr(-4);
317316

318317
return this.sendTransactionRequest({
319318
transactionType: 'refundTransaction',

0 commit comments

Comments
 (0)