简体   繁体   English

Clickbank INS V6.0集成c#

[英]Clickbank INS V6.0 Integration c#

I am trying to integrate CLickBankINSV6.0 to my c# application. 我正在尝试将CLickBankINSV6.0集成到我的C#应用​​程序中。

I have tried by using a sample response like: 我尝试通过使用示例响应,如:

{
    "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"
}

But always I am getting "Test Notification Failed to send" message from clickbank. 但是我总是从clickbank收到“测试通知发送失败”消息。

Is there a sample test response available with anyone who could get a success from test? 可以从测试中获得成功的任何人都可以得到样本测试答复吗?

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();
             }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM