【问题标题】:Authorize.Net API: Define a default credit card for chargingAuthorize.Net API:定义一个默认的信用卡进行收费
【发布时间】:2014-01-23 19:32:02
【问题描述】:

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

我有两个问题 1) 当我对拥有多个付款资料的客户的交易进行收费时,将收取哪张信用卡。 2) 有没有办法定义一个默认的信用卡来收费。

谢谢

【问题讨论】:

    标签: asp.net authorize.net


    【解决方案1】:

    目前无法为付款创建默认付款资料。每个createCustomerProfileTransactionRequest 调用都必须始终传递一个。

    【讨论】:

      【解决方案2】:

      updateCustomerPaymentProfileRequest页面,我看到了这个内容:

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

      【讨论】:

        【解决方案3】:

        设置默认付款资料将 100% 起作用

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

        【讨论】:

          猜你喜欢
          • 2012-01-13
          • 2017-12-25
          • 2011-10-09
          • 2019-11-01
          • 2013-04-24
          • 2011-01-01
          • 2016-09-07
          • 2023-03-25
          • 2016-08-02
          相关资源
          最近更新 更多