【问题标题】:MasterCard Sample Code Sample_REST-JSON_PHP error Invalid MerchantIDMasterCard 示例代码 Sample_REST-JSON_PHP 错误 Invalid MerchantID
【发布时间】: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


    【解决方案1】:

    您需要支付服务提供商提供的merchantId。它在错误中说明了很多。

    【讨论】:

    • 感谢您的回复。我从我的金融提供商那里获得了商家 ID。我得到了错误。如果我放置其他此类广告“TESTABCDEF”。这将是无效响应错误,而不是无效的商家 ID 错误。
    • 您能否与新的merchantId@TechWiFi 分享您发送给 MPGS 的请求的更多详细信息
    • 发帖前我从金融提供商那里得到了merchantId。在你提醒我之后,我再次与金融服务提供商核实商家 ID 是否有效,他们目前正在核实。错误代码仍然是“值'[INSERT-MERCHANT-ID]'无效。没有有效的商户收单机构关系可用”再次感谢您的帮助。
    • 我找到了根本原因并解决了问题。商号是正确的。该错误是由不正确的货币代码引起的。每个merchantid 只与某种货币相关。感谢ザヘド的帮助。
    • 没有看到发送的请求,就不可能知道哪里出了问题。很高兴你能解决它
    猜你喜欢
    • 2011-07-18
    • 2018-10-01
    • 1970-01-01
    • 2016-04-11
    • 2016-05-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多