[英]multidimensional key-pair array with json_decode (Clickbank IPN v.6.0)
[英]Clickbank INS V6.0 Integration c#
我正在嘗試將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收到“測試通知發送失敗”消息。
可以從測試中獲得成功的任何人都可以得到樣本測試答復嗎?
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.