Skip to content
This repository was archived by the owner on Oct 1, 2019. It is now read-only.

Commit 2422825

Browse files
author
Amine Mouafik
committed
Fix undefined other in chargeCustomer
1 parent 3302b4f commit 2422825

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AuthorizeNetGateway.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ AuthorizeNetGateway.prototype.createCustomerProfile = function (payment, billing
486486
* IMPORTANT TO NOTE,at the moment if the customer has several payment profiles the payment profile used will always be the first one
487487
*/
488488
AuthorizeNetGateway.prototype.chargeCustomer = function (order, prospect, other) {
489-
489+
other = other || {}
490490
return this.getCustomerProfile(prospect.profileId)
491491
.then(function (res) {
492492

0 commit comments

Comments
 (0)