无法在 CyberSource 上使用 REST API 从交易中创建令牌 ID

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

我无法通过 REST API 从 CyberSource 沙箱环境中的交易部分生成令牌 ID。 在 CyberSource 的 UI 上,我可以通过 CyberSorce 的文档来创建它。但通过 API 来做到这一点是非常困难的;我没有找到任何提到这一点的文档。

在发送到 CyberSource 的请求正文中,我们只有以下信息:merchantReferenceCode、requestID、requestToken、authorizationCode、reconciliationID 和 payment_id。我想请您确认一下,如果我只有上述信息,我可以在CyberSource上创建令牌ID吗?

如果可能,请让我知道 CyberSource 有相关文档。

非常感谢您的支持。我真的很感谢你的帮助。

我尝试在 Postman 上创建它并遵循来自 CyberSource 和 Postman 的文档。

https://documenter.getpostman.com/view/2960117/S17m1riA#intro

https://developer.cybersource.com/api-reference-assets/index.html

transactions token payment cybersource
1个回答
0
投票

找到以下 API 请求以在 API 中创建令牌

{
  "clientReferenceInformation": {
    "code": "TC50171_3"
  },
  "processingInformation": {
    "actionList": [
      "TOKEN_CREATE"
    ],
    "actionTokenTypes": [
      "customer",
      "paymentInstrument",
      "shippingAddress"
    ]
  },
  "paymentInformation": {
    "card": {
      "number": "41111xxxxxxx1111",
      "expirationMonth": "12",
      "expirationYear": "2031",
      "securityCode": "123"
    }
  },
  "orderInformation": {
    "amountDetails": {
      "totalAmount": "102.21",
      "currency": "USD"
    },
    "billTo": {
      "firstName": "John",
      "lastName": "Doe",
      "address1": "1 Market St",
      "locality": "san francisco",
      "administrativeArea": "CA",
      "postalCode": "94105",
      "country": "US",
      "email": "[email protected]",
      "phoneNumber": "4158880000"
    },
    "shipTo": {
      "firstName": "John",
      "lastName": "Doe",
      "address1": "1 Market St",
      "locality": "san francisco",
      "administrativeArea": "CA",
      "postalCode": "94105",
      "country": "US"
    }
  }
}

欲了解更多信息,请访问官方网络资源页面此处

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