From 4aff0e48df4ab21a28f4e0b45006a3e0e78e3cf1 Mon Sep 17 00:00:00 2001 From: Robert Jones Date: Tue, 5 Apr 2016 14:42:15 +0000 Subject: [PATCH] Add billTo to customer profile. --- lib/AuthorizeNetGateway.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/AuthorizeNetGateway.js b/lib/AuthorizeNetGateway.js index 4cb9a50..0ddbd5d 100644 --- a/lib/AuthorizeNetGateway.js +++ b/lib/AuthorizeNetGateway.js @@ -418,6 +418,7 @@ AuthorizeNetGateway.prototype.createCustomerProfile = function (payment, billing description: options.description || '', email: billing.billingEmailAddress, paymentProfiles: { + billTo: billing && mapKeys(billing, billToSchema) || undefined, payment: { creditCard: { cardNumber: payment.creditCardNumber,