【发布时间】:2021-05-14 08:45:55
【问题描述】:
我在尝试集成 MasterCard 支付网关示例代码时遇到错误请求帮助: 网关示例代码链接:https://ap-gateway.mastercard.com/api/documentation/downloads/example/Sample_REST-JSON_PHP.zip?locale=en_US
我在configuration.php中配置如下字段
// Base URL of the Payment Gateway. Do not include the version.
$configArray["gatewayUrl"] = "https://ap-gateway.mastercard.com/api/rest/";
// Merchant ID supplied by your payments provider
$configArray["merchantId"] = "[INSERT-MERCHANT-ID]";
// API username in the format below where Merchant ID is the same as above
$configArray["apiUsername"] = "merchant.[INSERT-MERCHANT-ID]";
// API password which can be configured in Merchant Administration
$configArray["password"] = "";
我很确定我的商家 ID(由金融提供商提供)是正确的。但是,我收到以下错误,请您帮忙指点一下吗?谢谢。
{
"error": {
"cause": "INVALID_REQUEST",
"explanation": "Value '[INSERT-MERCHANT-ID]' is invalid. No valid Merchant Acquirer Relationship available",
"field": "merchantId",
"validationType": "INVALID"
},
"result": "ERROR"
}
问候, 卡洛斯
【问题讨论】:
标签: php gateway mastercard