如何在 Authorize.Net 中创建和获取 CustomerPaymentProfile

How to create and get CustomerPaymentProfile in Authorize.Net

您好,

我是 Authorize.net 的新手,在将它与我的 PHP 网站集成时遇到了一些麻烦。

我的问题:

1) 当我创建一个 customerProfile 时,付款配置文件也会与 it.There 一起创建,这是一种获取 customerProfileId($response->getCustomerProfileId()). 但是如何获取customerPaymentProfileID

2) 当我创建一个 customerPaymentProfile 时,它给出了成功响应。但是 null customerPaymentProfileID.

3) 如何仅通过 customerProfileId 获取所有 customerPaymentProfiles 的列表。

我在 SANDBOX 模式下使用开发人员 API 参考资料 中提供的相同代码

请帮我解决这个问题。

在Authroize.Net 要获取客户资料 ID 的客户付款资料 ID,请使用此示例代码:Sample Code to Get Payment Profile Ids.

并且在创建客户付款资料时,它 returns 一个 customerPaymentProfile:API Reference, 检查响应选项卡。 为此,您需要使用 $response->getCustomerPaymentProfileId()