Skip to content

Commit 917e264

Browse files
committed
Update to match 42-cent-model properties
1 parent c9981fe commit 917e264

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/AuthorizeNetGateway.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ AuthorizeNetGateway.prototype.submitTransaction = function submitTransaction (or
137137
creditCard: {
138138
cardNumber: creditCard.creditCardNumber,
139139
expirationDate: expirationMonth + expirationYear,
140-
cardCode: creditCard.cvv
140+
cardCode: creditCard.cvv2
141141
}
142142
}
143143
};
@@ -174,7 +174,7 @@ AuthorizeNetGateway.prototype.authorizeTransaction = function authorizeTransacti
174174
creditCard: {
175175
cardNumber: creditCard.creditCardNumber,
176176
expirationDate: expirationMonth + expirationYear,
177-
cardCode: creditCard.cvv
177+
cardCode: creditCard.cvv2
178178
}
179179
}
180180
};
@@ -406,13 +406,13 @@ AuthorizeNetGateway.prototype.createCustomerProfile = function (payment, billing
406406
var body = {
407407
merchantCustomerId: options.merchantCustomerId || '',
408408
description: options.description || '',
409-
email: billing.customerEmail,
409+
email: billing.billingEmailAddress,
410410
paymentProfiles: {
411411
payment: {
412412
creditCard: {
413413
cardNumber: payment.creditCardNumber,
414414
expirationDate: [payment.expirationYear.toString(), payment.expirationMonth.toString()].join('-'),
415-
cardCode: payment.cvv
415+
cardCode: payment.cvv2
416416
}
417417
}
418418
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "authorize-net",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Node.js SDK for Authorize.net paymenet gateway.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)