node.js - 创建付款时结帐时出现此错误 "Bad request - parameter error"

标签 node.js payment-gateway 2checkout

创建付款时,此错误出现“错误请求 - 参数错误”,如下所示。我定义了所有结帐配置。请任何遇到此问题或对此问题有想法的人

    var params = {
        "merchantOrderId": "123",
        "token": "MWQyYTI0ZmUtNjhiOS00NTIxLTgwY2MtODc3MWRlNmZjY2Jh",
        "currency": "USD",
        "total": "10.00",
        "billingAddr": {
            "name": "Testing Tester",
            "addrLine1": "123 Test St",
            "city": "Columbus",
            "state": "Ohio",
            "zipCode": "43123",
            "country": "USA",
            "email": "example@2co.com",
            "phoneNumber": "5555555555"
        }
    };

    // Make the call using the authorization object and your callback function
    tco.checkout.authorize(params, function (error, data) {
        if (error) {
            console.log('error ',error.message);
        } else {
            console.log('success ',JSON.stringify(data));
        }
    });

最佳答案

由于以下原因引发错误错误请求 - 参数错误

  1. 您的帐户尚未获得 2Checkout 机构的批准
  2. 您已被 2Checkout 屏蔽

关于node.js - 创建付款时结帐时出现此错误 "Bad request - parameter error",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27341513/

相关文章:

node.js - 使 Node.js REPL 的异步函数同步

android - 在 Android 中集成支付选项

paypal - 在不符合 PCI 的情况下保存信用卡

javascript - 使用复选框删除 lastIndexOf url

node.js - Nodejs 识别异步任务的输出

javascript - 在 javascript 中交换页面内容。为什么没有解决办法呢?

node.js - Mongoose 和箭头功能

payment-gateway - 授权.net : The underlying connection was closed

javascript - 导致 IE 中出现问题的表单名称属性