Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 授权.Net API:定义用于收费的默认信用卡_Asp.net_Authorize.net - Fatal编程技术网

Asp.net 授权.Net API:定义用于收费的默认信用卡

Asp.net 授权.Net API:定义用于收费的默认信用卡,asp.net,authorize.net,Asp.net,Authorize.net,我在authorize.net中为单个客户保存了多个付款配置文件。每个支付配置文件都包含一个信用卡信息 我有两个问题 1) 当我向具有多个付款模式的客户的交易收费时,将收取哪张信用卡的费用。 2) 有没有办法定义要收费的默认信用卡 谢谢目前无法为付款创建默认付款模式。每次调用createCustomerProfileTransactionRequest都必须传递一个请求。在第页中,我看到以下内容: defaultPaymentProfile:设置为true时,此字段将付款配置文件指定为默认付款配

我在authorize.net中为单个客户保存了多个付款配置文件。每个支付配置文件都包含一个信用卡信息

我有两个问题 1) 当我向具有多个付款模式的客户的交易收费时,将收取哪张信用卡的费用。 2) 有没有办法定义要收费的默认信用卡


谢谢

目前无法为付款创建默认付款模式。每次调用
createCustomerProfileTransactionRequest
都必须传递一个请求。

在第页中,我看到以下内容:

defaultPaymentProfile:设置为true时,此字段将付款配置文件指定为默认付款配置文件。
指定默认付款配置文件后,您可以使用getCustomerPaymentProfileRequest和customerProfileId作为唯一参数。

设置默认付款配置文件将100%起作用

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