首页 > 解决方案 > 如何在 opayo pi 中获取保存的 cardIdentifier?

问题描述

我正在使用 opayo pi https://developer-eu.elavon.com/docs/opayo为付款进行后端开发

我有个疑问。在他们说的文档中,我们需要cardIdentifier在进行交易之前创建一个。看到这个。https://developer-eu.elavon.com/docs/opayo/spec/api-reference-0#tag/Card-Identifiers

"save": true我们可以在创建交易时 将其作为可重复使用的卡。https://developer-eu.elavon.com/docs/opayo/tokens-reusable-identifiers#reusing-the-token https://developer-eu.elavon.com/docs/opayo/spec/api-reference-0 #操作/创建事务

并且,下次我们可以通过仅提供cvv(securityCode) 来使用它。我们不需要提供卡的详细信息,例如cardholderName, cardNumber, expiryDate

他们说,

If you are using a reusable card identifier and require a security code check, you will need to link the reusable card identifier with the security code.

请参阅此处https://developer-eu.elavon.com/docs/opayo/spec/api-reference-0#operation/linkCi

我的问题是,

我们如何知道它是一张可重复使用的卡片,以及如何在cardIdentifier不发送卡片详细信息的情况下获取(已保存)。因为链接卡标识符的 POST 请求是 https://pi-test.sagepay.com/api/v1/card-identifiers/{cardIdentifier}/security-code所以需要{cardIdentifier}.

如果有人在使用此 API,请清除我的疑问。

标签: payment-gatewaypaymentopayo

解决方案


推荐阅读