-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathPaper.js
28 lines (25 loc) · 852 Bytes
/
Paper.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
/*
[rewrite_local]
^https?:\/\/api\.revenuecat\.com\/v1\/(subscribers\/[^\/]+$|receipts$) url script-response-body https://raw.githubusercontent.com/Guding88/Script/main/Paper.js
[MITM]
hostname = api.revenuecat.com
*/
var guding = JSON.parse($response.body);
guding.subscriber.entitlements = {
"pro": {
"expires_date": "2333-02-23T02:33:33Z",
"product_identifier": "com.fiftythree.paper.pro_12",
"purchase_date": "6666-06-06T06:06:06Z"
}
};
guding.subscriber.original_purchase_date = "2023-02-23T03:33:33Z";
guding.subscriber.subscriptions = {
"com.fiftythree.paper.pro_12": {
"expires_date": "6666-06-06T06:06:06Z",
"original_purchase_date": "2023-02-23T02:33:33Z",
"purchase_date": "2023-02-23T02:33:33Z",
"ownership_type" : "PURCHASED",
"store" : "app_store"
}
};
$done({ body: JSON.stringify(guding) });