如何在万事达卡网关支付 (mpgs) 中使用托管结账方式进行标记化

How to make tokenization using hosted checkout way in mastercard gateway payment (mpgs)

我想进行标记化,请查看 here

中的 mpgs 文档

POST: https://test-gateway.mastercard.com/api/rest/version/59/merchant/{{merchantId}}/token

Here is the documentation fot it

例如: POST: https://test-gateway.mastercard.com/api/rest/version/59/merchant/999000999/token

正文为行:

{
"sourceOfFunds": {
    "provided": {
        "card": {
            "expiry": {
                "month": "05",
                "year": "21"
            },
            "number": "5123456789012346"
        }
    },
    "type": "CARD"
}

}

响应:

{
"repositoryId": "REP999000999",
"response": {
    "gatewayCode": "NO_VERIFICATION_PERFORMED"
},
"result": "SUCCESS",
"sourceOfFunds": {
    "provided": {
        "card": {
            "brand": "MASTERCARD",
            "expiry": "0521",
            "fundingMethod": "CREDIT",
            "number": "512345xxxxxx2346",
            "scheme": "MASTERCARD"
        }
    },
    "type": "CARD"
},
"status": "VALID",
"token": "9116324659162248",
"usage": {
    "lastUpdated": "2021-04-24T08:17:18.383Z",
    "lastUpdatedBy": "999000999",
    "lastUsed": "2021-04-24T08:17:18.410Z"
},
"verificationStrategy": "NONE"

}

正如您从回复中看到的那样,我得到了“令牌”:“9116324659162248”,但我需要的是获得该令牌但没有发送卡详细信息,我想这样做以避免 PCI Compline,(我的银行告诉我的)

有没有无需发送卡付款即可标记化的方法?

我费了好大劲才找到解决方案,您可以使用以下步骤标记卡详细信息:

1- 首先,您应该要求银行为您的商家帐户启用令牌化

2- 访问此 page 并阅读来自 mpgs 网关的文档

3- 使用托管结账完成支付过程后,sessionId 应该是 return,所以存储它,然后执行此 api :