Skip to content

Commit 7adf20c

Browse files
committed
补充 data.txt
1 parent 2dce2eb commit 7adf20c

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,4 @@ _UpgradeReport_Files/
105105
Backup*/
106106
UpgradeLog*.XML
107107
*.cmd
108-
*.nupkg
109-
110-
*.txt
108+
*.nupkg

Example/Example/VerifyDemo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public class VerifyDemo
1717
public static bool Example()
1818
{
1919
const string sig = "BX5sToHUzPSJvAfXqhtJicsuPjt3yvq804PguzLnMruCSvZ4C7xYS4trdg1blJPh26eeK/P2QfCCHpWKedsRS3bPKkjAvugnMKs+3Zs1k+PshAiZsET4sWPGNnf1E89Kh7/2XMa1mgbXtHt7zPNC4kamTqUL/QmEVI8LJNq7C9P3LR03kK2szJDhPzkWPgRyY2YpD2eq1aCJm0bkX9mBWTZdSYFhKt3vuM1Qjp5PWXk0tN5h9dNFqpisihK7XboB81poER2SmnZ8PIslzWu2iULM7VWxmEDA70JKBJFweqLCFBHRszA8Nt3AXF0z5qe61oH1oSUmtPwNhdQQ2G5X3g==";
20-
const string dataPath = @"data.txt";
21-
const string path = @"key.pem";
20+
const string dataPath = @"../../data.txt";
21+
const string path = @"../../key.pem";
2222

2323
var verified = VerifySignedHash(ReadFileToString(dataPath), sig, path);
2424
Console.WriteLine(verified ? "Verify Succeed" : "Verify Failed");

Example/Example/WebhooksDemo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class WebhooksDemo
1111
{
1212
public static Event Example()
1313
{
14-
var data = ReadFileToString(@"data.txt");
14+
var data = ReadFileToString(@"../../data.txt");
1515
var evt = Webhooks.ParseWebhook(data);
1616
Console.WriteLine(evt);
1717

Example/Example/data.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"id":"evt_eYa58Wd44Glerl8AgfYfd1sL","created":1434368075,"livemode":true,"type":"charge.succeeded","data":{"object":{"id":"ch_bq9IHKnn6GnLzsS0swOujr4x","object":"charge","created":1434368069,"livemode":true,"paid":true,"refunded":false,"app":"app_vcPcqDeS88ixrPlu","channel":"wx","order_no":"2015d019f7cf6c0d","client_ip":"140.227.22.72","amount":100,"amount_settle":0,"currency":"cny","subject":"An Apple","body":"A Big Red Apple","extra":{},"time_paid":1434368074,"time_expire":1434455469,"time_settle":null,"transaction_no":"1014400031201506150354653857","refunds":{"object":"list","url":"/v1/charges/ch_bq9IHKnn6GnLzsS0swOujr4x/refunds","has_more":false,"data":[]},"amount_refunded":0,"failure_code":null,"failure_msg":null,"metadata":{},"credential":{},"description":null}},"object":"event","pending_webhooks":0,"request":"iar_Xc2SGjrbdmT0eeKWeCsvLhbL"}

libs/pingpp.dll

0 Bytes
Binary file not shown.

pingpp/Models/Customer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class Customer : Pingpp
3737
public Dictionary<string, object> Metadata { get; set; }
3838

3939
[JsonProperty("sources")]
40-
public object Sources { get; set; }
40+
public CardList Sources { get; set; }
4141

4242
[JsonProperty("default_source")]
4343
public string DefaultSource { get; set; }

0 commit comments

Comments
 (0)