1

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

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

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

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

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

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

4

1 回答 1

1

找到了:

$profile = new AnetAPI\CustomerProfilePaymentType();
$profile->setCreateProfile(true); 
$transactionRequestType->setProfile($profile);
于 2016-06-15T20:12:30.210 回答