【问题标题】:Authorize.Net CIM: How to send createProfile=true into the transaction with PHP APIAuthorize.Net CIM:如何使用 PHP API 将 createProfile=true 发送到事务中
【发布时间】:2016-10-16 23:32:30
【问题描述】:

API 文档说要将 createProfile 设置为 true。我找不到这样的例子,所以在四处搜索后我找到了 setCreateProfile 方法。我正在这样使用它。我没有收到任何错误。

$this->custpaymentprofile = new AnetAPI\CustomerProfilePaymentType(); $this->custpaymentprofile->setCreateProfile(true);

我不知道如何通过交易发送此设置,以便创建客户资料。

所有其他数据都通过 AnetAPI\TransactionRequestType() 发送

IE: $this->transactionRequestType->setOrder($this->order);

一切正常,我可以运行成功的事务,只需要获取它来创建配置文件。

【问题讨论】:

    标签: php authorize.net authorize.net-cim


    【解决方案1】:

    找到了:

    $profile = new AnetAPI\CustomerProfilePaymentType();
    $profile->setCreateProfile(true); 
    $transactionRequestType->setProfile($profile);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-14
      • 2011-04-24
      • 2016-04-17
      • 2016-02-07
      • 2013-07-01
      • 2014-01-06
      • 2012-11-29
      • 2011-03-22
      相关资源
      最近更新 更多