php - 在 cardinalcommerce 中为 Amex 获取 API 错误 [9000] desc [服务 CCA 查找错误]

标签 php jwt 3d-secure

我正在使用 Cardinal Cruise Hybrid 进行 3D 安全。我遵循了 Cardinal Cruise 提供的文档. 我用 PHP 创建了 JWT。我正在使用 Cardinal Cruise Javascript Activation Credentials .我收到 cmpi_lookup 响应和 cmpi_authenticate 与 Visa 和 master 的响应。

我无法使用美国运通卡获得 cmpi_lookup 响应。谁能帮我解决这个问题? 我的js代码

  Cardinal.configure({
logging: {
    level: "on"
}
  });

  var orderObject =  {
        "Authorization": {
          "AuthorizeAccount": true
        },
        "Cart": [
          {
            "Name": "test",
            "SKU": "sdsadsf",
            "Quantity": "3",
            "Description": "ccccc"
          }
        ],
        "Consumer": {
          "Email1": "test@mail.com",
          "Email2": "test1@mail.com",
          "ShippingAddress": {
            "FullName": "John Smith",
            "FirstName": "John",
            "MiddleName": "",
            "LastName": "Smith",
            "Address1": "8100 Tyler Blvd.",
            "Address2": "",
            "Address3": "",
            "City": "Mentor",
            "State": "Ohio",
            "PostalCode": "44060",
            "CountryCode": "US",
            "Phone1": "",
            "Phone2": ""
          },
          "BillingAddress": {
            "FullName": "John Smith",
            "FirstName": "John",
            "MiddleName": "",
            "LastName": "Smith",
            "Address1": "8100 Tyler Blvd.",
            "Address2": "",
            "Address3": "",
            "City": "Mentor",
            "State": "Ohio",
            "PostalCode": "44060",
            "CountryCode": "US",
            "Phone1": "",
            "Phone2": ""
          },
          "Account": {
            "AccountNumber": 340000000003961,
            "ExpirationMonth": 01,
            "ExpirationYear": 2022,
            "CardCode": 0775,
            "NameOnAccount": "John Smith"
          }
        },
        "Options": {
          "EnableCCA": true
        },
        "OrderDetails": { 
          "OrderNumber": Math.random(0, 1000000) + "-shzs",
          "Amount": 25.00,
          "CurrencyCode": "840",
          "OrderDescription": "nothg",
          "OrderChannel": "S",
          "TransactionId": "2fDSaySnCmDGCjPglzqX"
        },
        "Token": {
         "Token": "",
          "CardCode": 0775,
          "ExpirationMonth": 01,
          "ExpirationYear": 2022
        },
         "CCAExtension" : {
            "AcquirerId" : "",
            "AcquirerMerchantId" : "",
            "AcquirerPassword" : "",
            "CountryCodeOverride" : "US",
            "FormId" : "",
            "MerchantName" : "devCenterMerchant",
            "MerchantUrl" : "https://centineltest.cardinalcommerce.com/maps/txns.asp",
            "PAResPayload" : "",
            "ProductCode" : "01",
            "ShippingMethod" : "01"
        }
  };

  Cardinal.setup('init', {
    jwt: document.getElementById('JWTContainer').value,
    order: orderObject
  });
  Cardinal.on('payments.setupComplete', function(){ 
  Cardinal.start('cca', orderObject); 
  });

得到回应

ActionCode: "NOACTION"
ErrorDescription: "Error in service CCA lookup"
ErrorNumber: 9000
ECIFlag: "07"
Enrolled: "U"

最佳答案

这是暂时对我有用的方法,但还有其他障碍

const orderObj = {
OrderDetails: {
  Amount: '2000',
  CurrencyCode: "NGN"
},
Consumer: {
  DFReferenceId: ReferenceId,
  Account: {
    AccountNumber: '4000000000001091',
    ExpirationMonth: '01',
    ExpirationYear: '2022',
    CardCode: '111'
  },
}
}
Cardinal.trigger("bin.process", `${fields.card}`)
.then(function (result) {
 if (result.Status) {
  Cardinal.start('cca', orderObj);
 }
})
.catch(function (error) {
  console.log(error, '===== bin.process error log');
  // An error occurred during profiling
})

关于php - 在 cardinalcommerce 中为 Amex 获取 API 错误 [9000] desc [服务 CCA 查找错误],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54704852/

相关文章:

javascript - 提交弹出表单后使用 AJAX 更改页面内容

javascript - jwt_authentication 请求 ajax - symfony

xml - Shopify XML API 响应 - 无效的元素名称 : 3DSecureStatus

javascript - Stripe 订阅 - Charing 3D Secure 卡号返回 subscription_payment_intent_requires_action

php - 在 PHP/Javascript 中调用浏览器后退按钮

php - 是否可以将一个表中的值插入另一个表并在同一查询中更新字段值?

php - Laravel 多对多关系插入

jwt - 使用 JWT 刷新 token 如何安全?

go - 使用 gin 包在 golang 中实现 JWT 中间件并保护其他 API?