【发布时间】:2014-01-23 19:32:02
【问题描述】:
我已在 authorize.net 中为单个客户保存了多个付款配置文件。每个付款配置文件都包含一个信用卡信息。
我有两个问题 1) 当我对拥有多个付款资料的客户的交易进行收费时,将收取哪张信用卡。 2) 有没有办法定义一个默认的信用卡来收费。
谢谢
【问题讨论】:
标签: asp.net authorize.net
我已在 authorize.net 中为单个客户保存了多个付款配置文件。每个付款配置文件都包含一个信用卡信息。
我有两个问题 1) 当我对拥有多个付款资料的客户的交易进行收费时,将收取哪张信用卡。 2) 有没有办法定义一个默认的信用卡来收费。
谢谢
【问题讨论】:
标签: asp.net authorize.net
目前无法为付款创建默认付款资料。每个createCustomerProfileTransactionRequest 调用都必须始终传递一个。
【讨论】:
在updateCustomerPaymentProfileRequest页面,我看到了这个内容:
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']);
【讨论】: