forked from jpcnmm/Scripting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Unfold.vip.js
75 lines (74 loc) · 9.57 KB
/
Unfold.vip.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
var obj = JSON.parse($response.body);
obj = {
"status": 0,
"environment": "Production",
"receipt": {
"receipt_type": "Production",
"app_item_id": 1247275033,
"receipt_creation_date": "2019-06-06 11:22:01 Etc/GMT",
"bundle_id": "com.moonlab.unfoldstories",
"original_purchase_date": "2019-06-06 11:13:18 Etc/GMT",
"in_app": [
{
"quantity": "1",
"purchase_date_ms": "1559820071000",
"expires_date": "9999-05-02 06:35:04 Etc/GMT",
"expires_date_pst": "9999-05-01 23:35:04 America/Los_Angeles",
"is_in_intro_offer_period": "false",
"transaction_id": "350000478662776",
"is_trial_period": "true",
"original_transaction_id": "350000478662776",
"purchase_date": "2019-06-06 11:21:11 Etc/GMT",
"product_id": "UNFOLD_PLUS_YEAR",
"original_purchase_date_pst": "2019-06-06 04:21:11 America/Los_Angeles",
"original_purchase_date_ms": "1559820071000",
"web_order_line_item_id": "310000127554953",
"expires_date_ms": "4081386904000",
"purchase_date_pst": "2019-06-06 04:21:11 America/Los_Angeles",
"original_purchase_date": "2019-06-06 11:21:11 Etc/GMT"
}
],
"adam_id": 1247275033,
"receipt_creation_date_pst": "2019-06-06 04:22:01 America/Los_Angeles",
"request_date": "2019-06-06 11:26:42 Etc/GMT",
"request_date_pst": "2019-06-06 04:26:42 America/Los_Angeles",
"version_external_identifier": 831552801,
"request_date_ms": "1559820402780",
"original_purchase_date_pst": "2019-06-06 04:13:18 America/Los_Angeles",
"application_version": "2104",
"original_purchase_date_ms": "1559819598000",
"receipt_creation_date_ms": "1559820121000",
"original_application_version": "1",
"download_id": 75046221646570
},
"pending_renewal_info": [
{
"product_id": "UNFOLD_PLUS_YEAR",
"original_transaction_id": "310000410687477",
"auto_renew_product_id": "UNFOLD_PLUS_YEAR",
"auto_renew_status": "1"
}
],
"latest_receipt_info": [
{
"quantity": "1",
"purchase_date_ms": "1559820071000",
"expires_date": "9999-05-02 06:35:04 Etc/GMT",
"expires_date_pst": "9999-05-01 23:35:04 America/Los_Angeles",
"is_in_intro_offer_period": "false",
"transaction_id": "350000478662776",
"is_trial_period": "true",
"original_transaction_id": "350000478662776",
"purchase_date": "2019-06-06 11:21:11 Etc/GMT",
"product_id": "UNFOLD_PLUS_YEAR",
"original_purchase_date_pst": "2019-06-06 04:21:11 America/Los_Angeles",
"original_purchase_date_ms": "1559819598000",
"web_order_line_item_id": "310000127554953",
"expires_date_ms": "4081386904000",
"purchase_date_pst": "2019-06-06 04:21:11 America/Los_Angeles",
"original_purchase_date": "2019-06-06 11:21:11 Etc/GMT"
}
],
"latest_receipt": "MIIUBwYJKoZIhvcNAQcCoIIT+DCCE/QCAQExCzAJBgUrDgMCGgUAMIIDqAYJKoZIhvcNAQcBoIIDmQSCA5UxggORMAoCARQCAQEEAgwAMAsCARkCAQEEAwIBAzAMAgEOAgEBBAQCAgCJMA0CAQoCAQEEBRYDMTIrMA0CAQsCAQEEBQIDBbw6MA0CAQ0CAQEEBQIDAdWIMA4CAQECAQEEBgIEGlAaQjAOAgEDAgEBBAYMBDU0NjEwDgIBCQIBAQQGAgRQMjUyMA4CARACAQEEBgIEMYd/xzAOAgETAgEBBAYMBDU0NjEwEAIBDwIBAQQIAgZAnAtPaKMwEwIBAgIBAQQLDAljb20ucGhvdG8wFAIBAAIBAQQMDApQcm9kdWN0aW9uMBgCAQQCAQIEEAujslKttlRyW0eNZ23GcXIwHAIBBQIBAQQUheRZ3b4JVGrNiIeMXkjyo3f0LDwwHgIBCAIBAQQWFhQyMDE5LTA0LTI4VDA5OjQyOjI1WjAeAgEMAgEBBBYWFDIwMTktMDQtMjhUMDk6NDI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