1

我正在尝试将 CLickBankINSV6.0 集成到我的 c# 应用程序中。

我尝试过使用示例响应,例如:

{
    "notification": {
        "version": 6,
        "attemptCount": 0,
        "role": "VENDOR",
        "site": "nicholeen",
        "receipt": "********",
        "currency": "USD",
        "transactionType": "TEST",
        "transactionTime": 1406070122781,
        "paymentMethod": "VISA",
        "totalProductAmount": 1,
        "totalTaxAmount": 0,
        "totalShippingAmount": 0,
        "customer": {
            "shipping": {
                "firstName": "TEST",
                "lastName": "USER",
                "fullName": "Test User",
                "email": "testuser@somesite.com",
                "address": {}
            },
            "billing": {
                "firstName": "TEST",
                "lastName": "USER",
                "fullName": "Test User",
                "email": "testuser@somesite.com",
                "address": {}
            }
        },
        "lineItems": [
            {
                "itemNo": "1",
                "productTitle": "A passed in title",
                "shippable": false,
                "recurring": false,
                "customerProductAmount": 1,
                "customerTaxAmount": 0
            }
        ]
    },
    "iv": "1A0b7S1R"
}

但我总是收到来自 clickbank 的“测试通知发送失败”消息。

是否有任何可以从测试中获得成功的人提供样本测试响应?

4

1 回答 1

1
string sContent = "";
string encryptednotfication = "";
string vector = "";
using (System.IO.Stream receiveStream = Request.InputStream)
{
     // Move to begining of input stream and read
     receiveStream.Position = 0;
     using (System.IO.StreamReader readStream =
            new System.IO.StreamReader(receiveStream, Encoding.UTF8))
            {
                // Load into XML document
                sContent = readStream.ReadToEnd();
             }
}
于 2015-01-22T12:37:57.070 回答