0
votes

I have saved multiple Payment Profiles for a single customer in authorize.net. Each Payment Profile contains a credit card information.

I have two questions 1) Which credit card will be charge, When I am charging a transaction of customer who have multiple Payment Profile. 2) Is there any way to define a default credit card to charge.

Thanks

3

3 Answers

1
votes

Currently there is no way to create a default payment profile for payments. One must always be passed with each createCustomerProfileTransactionRequest call.

0
votes

in updateCustomerPaymentProfileRequest page , I see this content:

defaultPaymentProfile : When set to true, this field designates the payment profile as the default payment profile. When a default payment profile has been designated, you can use getCustomerPaymentProfileRequest with customerProfileId as the only parameter.

0
votes

it will work 100% to set default payment profile

      $paymentprofile = new AnetAPI\CustomerPaymentProfileExType();
      $paymentprofile->setCustomerPaymentProfileId($payment_detail['payment_profile_id']);
      $paymentprofile->setBillTo($billto);
      $paymentprofile->setPayment($paymentCreditCard);
      $paymentprofile->setDefaultPaymentProfile($payment_detail['default_payment']);