私は、HostedプロファイルページのBilling Addressフィールドを非表示にするため、Authorize.netのCIMインターフェイスへのAPI呼び出しを更新しようとしていました。GetHostedProfilePageがhostedProfileBillingAddressOptionsの設定を尊重しない
ドキュメントでは、トークン作成機能を呼び出すときに、値 "showNone"の設定を "hostedProfileBillingAddressOptions"に設定すると、フォームの請求先アドレス部分が非表示になりますが、この設定を渡すと、請求先住所が表示されます。
「hostedProfileIFrameCommunicatorUrl」および「hostedProfilePageBorderVisible」設定と同じ方法で追加した設定を正しく渡していることを確認しました。また、「hostedProfileBillingAddressOptions」オプションに無効な値を渡した場合、トークン作成機能エラーを返します
アカウント設定や別の設定パラメータなど、このオプションが依存するその他の項目がありますか?
参考のために、私はサンドボックスシステムでこれをテストしていると私はDOTNET SDKを使用しています、私はSDKを通じて見てきた
Public Shared Function CreateHostFormToken(apiId As String, apiKey As String, branchId As Int64, nUser As Contact, iframeComURL As String) As String
Dim nCustProfile = GetCustomerProfile(apiId, apiKey, branchId, nUser)
Dim nHost = New AuthorizeNet.Api.Contracts.V1.getHostedProfilePageRequest()
nHost.customerProfileId = nCustProfile
' Set Auth
Dim nAuth = New Api.Contracts.V1.merchantAuthenticationType()
nAuth.ItemElementName = Api.Contracts.V1.ItemChoiceType.transactionKey
nAuth.name = apiId
nAuth.Item = apiKey
nHost.merchantAuthentication = nAuth
' Set Params
Dim settingList As New List(Of Api.Contracts.V1.settingType)
Dim nParam As New Api.Contracts.V1.settingType With {.settingName = "hostedProfileIFrameCommunicatorUrl",
.settingValue = iframeComURL}
settingList.Add(nParam)
nParam = New Api.Contracts.V1.settingType With {.settingName = "hostedProfilePageBorderVisible",
.settingValue = "false"}
settingList.Add(nParam)
nParam = New Api.Contracts.V1.settingType With {.settingName = "hostedProfileBillingAddressOptions",
.settingValue = "showNone"}
settingList.Add(nParam)
nHost.hostedProfileSettings = settingList.ToArray
Dim nX = New AuthorizeNet.Api.Controllers.getHostedProfilePageController(nHost)
Dim nRes = nX.ExecuteWithApiResponse(GetEnvironment())
Return nRes.token
End Function
を次のようにAPI関数を呼び出すための私のテストコードがありますコードも同様ですが、そこに設定が通過しないようにするものはありません。
誰かがこの問題に遭遇したか、請求先住所を非表示にするためにカード入力フォームを設定しましたか?