2015-11-23 24 views
0

你好獲得CustomerPaymentProfile,如何創建和Authorize.Net

我是新的Authorize.net和麪臨一些麻煩,它與我的PHP的網站整合。

我的問題:

1)當我創建一個customerProfile付款資料,也得到與it.There一起創建是爲了得到一個方法customerProfileId($應答爲> getCustomerProfileId())。但是如何獲得customerPaymentProfileID

2)當我創建一個customerPaymentProfile它是成功的迴應。但是nullcustomerPaymentProfileID

3)如何獲取全部的清單customerPaymentProfiles僅限customerProfileId。

我使用在開發者API全球化志願服務青年在沙盒模式提供相同的代碼

請幫我解決這個問題的傢伙。

回答

0

在Authroize.Net 中,要獲取客戶配置文件ID的客戶付款配置文件ID,請使用此示例代碼:Sample Code to Get Payment Profile Ids

在創建客戶付款資料時,它會返回一個customerPaymentProfile:API Reference, 檢查回覆選項卡。 對於您需要使用$response->getCustomerPaymentProfileId()