首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Clickbank INS V6.0集成c#

Clickbank INS V6.0集成c#
EN

Stack Overflow用户
提问于 2014-10-10 17:09:56
回答 1查看 208关注 0票数 1

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

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

代码语言:javascript
复制
{
    "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的“测试通知发送失败”消息。

有没有可以从测试中获得成功的人可以使用的样本测试响应?

EN

回答 1

Stack Overflow用户

发布于 2015-01-22 20:37:57

代码语言:javascript
复制
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();
             }
}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26295794

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档