AuthorizeNet / sample-code-php

This repository contains working code samples which demonstrate php integration with the Authorize.Net API
MIT License
176 stars 197 forks source link

How to get Customer Payment Profile Id? #56

Closed ghost closed 7 years ago

ghost commented 7 years ago

After createCustomerProfileFromTransaction is there an easy way to determine which CustomerPaymentProfileId was just used/set?

It's easy to $response->getCustomerProfileId() and I see a getCustomerPaymentProfileIdList() method, but not sure if I have to loop through that and compare with transaction data just transmitted or if there's a better way.

brianmc commented 7 years ago

There's always just one element in the CustomerPaymentProfileIdList that's the payment profile that was just created from the transaction.

ghost commented 7 years ago

got it, thanks! array w/ 1 element.