【问题标题】:Access Denied - User doesn't have the access for the requested operation in UnionPay (WireCard)拒绝访问 - 用户在银联 (WireCard) 中没有请求操作的访问权限
【发布时间】:2018-11-30 05:43:55
【问题描述】:

我使用了 Wirecard Union Pay Payment,但它返回 Access Denied - User does not have access to the requested operation! 错误。

以下是沙盒详情;

{
        "MerchantAccountId": "7139c728-cc91-11e3-ac9f-00163e1a318d",
        "PaymentMethod": "chinapay",
        "Mode": "sandbox",
        "UserName": "70000-APILUHN-CARD",
        "Password": "8mhwavKVb91T",
        "Url": "https://api-test.wirecard.com/engine/rest/paymentmethods"
}

标题 基本 NzAwMDAtQVBJTFVITi1DQVJEOjhtaHdhdktWYjkxVA==

请求 JSON

{
   "payment":{
      "merchant-account-id":{
         "value":"7139c728-cc91-11e3-ac9f-00163e1a318d"
      },
      "request-id":"dd30edbf-240e-4b21-9bb5-d0d95319e6b1",
      "transaction-type":"authorization",
      "requested-amount":{
         "value":"1.01",
         "currency":"USD"
      },
      "account-holder":{
         "first-name":"Pawan",
         "last-name":"Shukla",
         "email":"pawan.shukla@wikaad.com",
         "phone":"+1(1)4161234567",
         "address":{
            "street1":"123 anystreet",
            "city":"Brantford",
            "country":"CA",
            "state":"ON"
         }
      },
      "order-number":"62598",
      "payment-methods":{
         "payment-method":[
            {
               "name":"chinapay"
            }
         ]
      },
      "cancel-redirect-url":"http://localhost:55152/Home/cancel",
      "success-redirect-url":"http://localhost:55152/Home/success",
      "fail-redirect-url":"http://localhost:55152/Home/fail",
      "ip-address":"127.0.0.1"
   }
}

如果我向wirecard发送请求,那么in将返回以下响应。

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<payment xmlns="http://www.elastic-payments.com/schema/payment" xmlns:ns2="http://www.elastic-payments.com/schema/epa/transaction">
    <transaction-state>failed</transaction-state>
    <statuses>
        <status code="403.1166" description="Access Denied - User doesn't have the access for the requested operation!" severity="error"/>
    </statuses>

所以请告诉我我缺少的东西。

【问题讨论】:

  • 您找到解决方案了吗?
  • 我们解决了我们的问题。我们的凭据哪里错了。你如何发送请求?我们正在使用基本身份验证,它可以正常工作。

标签: payment-gateway payment


【解决方案1】:

您是否尝试过使用其他测试帐户?

WIRECARD_USERNAME = "70000-APIDEMO-CARD"

WIRECARD_PASSWORD = "ohysS0-dvfMx"

WIRECARD_USERNAME = "70000-APILUHN-CARD"

WIRECARD_PASSWORD = "8mhwavKVb91T"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-12-18
    • 2020-07-20
    • 1970-01-01
    • 1970-01-01
    • 2013-08-23
    • 1970-01-01
    • 1970-01-01
    • 2012-10-11
    相关资源
    最近更新 更多