stripe.com向我要對我的ashx文件如何訪問此StripeCharge映射器對象?
{
"type": "charge.refunded",
"livemode": false,
"object": "event",
"created": 1326853478,
"id": "evt_00000000000000",
"data": {
"object": {
"livemode": false,
"fee_details": [
{
"application": null,
"type": "stripe_fee",
"amount": 0,
"currency": "usd",
"description": "Stripe processing fees"
}
],
"amount_refunded": 0,
"invoice": null,
"failure_message": null,
"object": "charge",
"created": 1355641115,
"amount": 0,
"customer": null,
"currency": "usd",
"card": {
"address_state": null,
"exp_year": 2012,
"type": "Visa",
"address_country": null,
"country": "US",
"address_line1": null,
"fingerprint": "thIB5TIJqKMnqdMm",
"address_line2": null,
"last4": "4242",
"object": "card",
"cvc_check": "pass",
"address_city": null,
"address_zip_check": null,
"name": null,
"address_zip": null,
"exp_month": 12,
"address_line1_check": null
},
"id": "ch_00000000000000",
"dispute": null,
"paid": true,
"refunded": true,
"fee": 0,
"description": null
}
}
}
,然後我用從 https://github.com/jaymedavis/stripe.net 代碼顯示了這樣做:
var json = new StreamReader(context.Request.InputStream).ReadToEnd();
var stripeEvent = StripeEventUtility.ParseEvent(json);
var StripeCharge = Stripe.Mapper<StripeCharge>
.MapFromJson(stripeEvent.Data.Object.ToString());
但是現在我如何找到例如, amount_refunded或來自stripeCharge var的描述?