Skip to content

Commit

Permalink
Fixing not passing through all the customer id’s in round trip calls.…
Browse files Browse the repository at this point in the history
… I.e. creating a customer from a vault and then using the customer and profiles to make a purchase
  • Loading branch information
cybersonic committed Mar 31, 2017
1 parent 7d02490 commit 141506e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api/gateway/authorizenet/authorizenet2016.cfc
Expand Up @@ -110,7 +110,8 @@ component
"transactionType" : "authCaptureTransaction",
"merchantAuthentication" : getMerchantAuthentication(),
"money" : arguments.money,
"options" : options
"options" : arguments.options,
"paymentProfile": arguments.paymentProfile
};

if(!IsNull(account)){
Expand Down
1 change: 1 addition & 0 deletions api/gateway/authorizenet/customer.cfc
Expand Up @@ -64,6 +64,7 @@ component accessors="true" {
setMerchantCustomerId(getXMLElementText(responseXML, "merchantCustomerId"));
setDescription(getXMLElementText(responseXML, "description"));
setEmail(getXMLElementText(responseXML, "email"));
setCustomerProfileId(getXMLElementText(responseXML, "customerProfileId"));


//TODO: find out if this is actually correct and we get an array of paymentProfiles back, documentation is lacking at this point:
Expand Down
2 changes: 1 addition & 1 deletion api/gateway/authorizenet/customerResponse.cfc
Expand Up @@ -108,7 +108,7 @@ component

for(var profile in paymentProfiles){
var paymentProfile = generatePaymentProfile(profile)

paymentProfile.setCustomerProfileId(getCustomerProfileID());
profiles.append(paymentProfile);
}

Expand Down

0 comments on commit 141506e

Please sign in to comment.