如何在持卡人账户对账单中显示自定义或动态描述符/商户名称

问题描述 投票:0回答:1

我正在使用 Cybersource 来捕获付款,并且运行良好。 现在我想根据要求更改描述符或商家名称。 默认情况下,描述符名称显示商家名称,这是可以的。

文档说我需要发送“invoiceHeader_merchantDescriptor”以请求更改描述符名称。付款应该是什么,没有明确声明,并且该特定参数甚至没有显示在文档的请求参数中。 Cyber Source Documentation Screenshot 文档链接 - https://developer.cybersource.com/content/cybsdeveloper2021/amer/en/library/documentation/sbc/SB_Merchant_Descriptors/SB_Merchant_Descriptors.pdf 我也做了同样的事情

enter image description here

但它不起作用。

$orderInformationArr = ["amountDetails" => $orderInformationAmountDetails,"billTo" => $orderInformationBillTo];

$orderInformation = new CyberSource\Model\Ptsv2paymentsOrderInformation($orderInformationArr);

$merchantDefinedInformation = array();

$merchantDefinedInformation_0 = [ "name" => "AirlineServices","alternateName" => "AirlineServices"];

$merchantDefinedInformation = new CyberSource\Model\Ptsv2paymentsMerchantInformationMerchantDescriptor($merchantDefinedInformation_0);

$requestObjArr = ["clientReferenceInformation" => $clientReferenceInformation,"processingInformation" => $processingInformation,"paymentInformation" => $paymentInformation,"orderInformation" => $orderInformation,"invoiceHeader_merchantDescriptor" => "AirlineServices"];

$requestObj = new CyberSource\Model\CreatePaymentRequest($requestObjArr);
php payment-gateway cybersource
1个回答
0
投票

您的截图表明您正在使用TSYS处理器。

在文档中,您需要联系 Cybersource 支持人员将您的帐户配置为使用该功能。

如果您还没有,那么我建议您联系 Cybersource 支持人员,让他们为您的帐户配置它,然后重试。

从您的字段名称来看,您似乎正在使用 REST API。如果是 REST,那么您需要将其放在“merchantInformation”中。示例:

“商家信息”:{ “商家描述符”:{ “姓名”: ”” }

您可以参考他们的开发者中心来了解如何构建请求: https://developer.cybersource.com/api-reference-assets/index.html# payments_capture_capture-a- payment

© www.soinside.com 2019 - 2024. All rights reserved.