LNPay Docs
Search…
Paywalls (deprecated)

Paywalls

The paywall_conversion event will fire on successful payment of a paywall, the wallet_receive event will also fire - because the wallet received money.
paywall_created
paywall_conversion
1
{
2
"id": "evt_wFexxrj7HGFdlfrbvxs6wkN",
3
"created_at": 1582541374,
4
"event": {
5
"type": "paywall",
6
"name": "paywall_created",
7
"display_name": "Paywall Create"
8
},
9
"data": {
10
"pywl": {
11
"destination_url": "https://www.github.com",
12
"memo": "My First Tester Paywall",
13
"lnd_value": "69",
14
"short_url": "03ccb",
15
"lnd_expiry": 86400,
16
"created_at": 1582541374,
17
"updated_at": 1582541374,
18
"metadata": [],
19
"id": "pywl_nwmA5Nq6oD9IuK",
20
"paywall_link": "https://paywall.link/to/03ccb",
21
"custyDomain": {
22
"domain_name": "paywall.link"
23
},
24
"statusType": {
25
"type": "link",
26
"name": "active",
27
"display_name": "Active"
28
},
29
"paywallType": {
30
"name": "basic",
31
"display_name": "Basic Paywall",
32
"description": "User must pay everytime the paywall is hit"
33
},
34
"template": null
35
}
36
}
37
}
Copied!
1
{
2
"created_at": 1582638979,
3
"id": "evt_am119vTFxDZRbOHMy3mxBU5",
4
"event": {
5
"type": "paywall",
6
"name": "paywall_conversion",
7
"display_name": "Paywall Conversion"
8
},
9
"data": {
10
"pywl": {
11
"id": "pywl_nwmA5Nq6oD9IuK",
12
"created_at": 1582541374,
13
"updated_at": 1582541374,
14
"destination_url": "https://www.github.com",
15
"memo": "My First Tester Paywall",
16
"lnd_value": 69,
17
"lnd_expiry": 86400,
18
"short_url": "03ccb",
19
"metadata": {
20
"extraAttributes": {
21
"unlock_threshold": 0,
22
"identifier_in_memo": false,
23
"send_partial_preimage_redirect": false
24
}
25
},
26
"paywall_link": "https://paywall.link/to/03ccb",
27
"custyDomain": {
28
"domain_name": "paywall.link"
29
},
30
"statusType": {
31
"type": "link",
32
"name": "active",
33
"display_name": "Active"
34
},
35
"paywallType": {
36
"name": "basic",
37
"display_name": "Basic Paywall",
38
"description": "User must pay everytime the paywall is hit"
39
},
40
"template": null
41
},
42
"wtx": {
43
"num_satoshis": 69,
44
"user_label": "Paywall Payment: 03ccb",
45
"created_at": 1582638978,
46
"id": "wtx_es70fgXOn9CiJkVU4NG5TSB",
47
"wal": {
48
"id": "w_n743yizWqe43Oz",
49
"created_at": 1579001314,
50
"updated_at": 1582638978,
51
"user_label": "Paywall Wallet",
52
"balance": 625,
53
"statusType": {
54
"type": "wallet",
55
"name": "active",
56
"display_name": "Active"
57
}
58
},
59
"wtxType": {
60
"layer": "ln",
61
"name": "ln_deposit",
62
"display_name": "LN Deposit"
63
},
64
"lnTx": {
65
"id": "lntx_mjgB1kvanfkwxII7O2KDa8J",
66
"created_at": 1582638941,
67
"dest_pubkey": "033868c219bdb51a33560d854d500fe7d3898a1ad9e05dd89d0007e11313588500",
68
"payment_request": "lnbc690n1p092f6app508wdlqmphj94x0se8hzezndaqkk96q4hk0n5cfn62zzhyrmfky3qdp9f4ujq3nfwfehggz5v4ehgetjypgxz7thv9kxccqzpgxqyz5vqsp5yvezsgl6k9ftweec8a04w6szy5q95da64hhj7vhks2t0chkgapms9qy9qsqv4grtk7lhqlac877vpyzvhxncwfaelf7rsf9z4w8jutkwucsexm5nz8v3szf9cpf0khp9n7ssms2zy6njsmdslh2f4j3g4lnwtnyktqpd6w0fj",
69
"r_hash_decoded": "79dcdf8361bc8b533e193dc5914dbd05ac5d02b7b3e74c267a5085720f69b122",
70
"memo": "My First Tester Paywall",
71
"description_hash": null,
72
"num_satoshis": 69,
73
"expiry": 86400,
74
"expires_at": 1582725341,
75
"payment_preimage": "c647b4ea73c64caadfcd2adb313c15c9c508252b9cb43dbfb16481a4c59eb592",
76
"settled": 1,
77
"settled_at": 1582638978,
78
"is_keysend": null,
79
"custom_records": null,
80
"passThru": {
81
"userDefined": {
82
"id": "03ccb",
83
"utm_source": "telegram",
84
"myUrlParameter": "specialVar"
85
}
86
}
87
},
88
"passThru": {
89
"pywl_id": "pywl_nwmA5Nq6oD9IuK",
90
"userDefined": {
91
"id": "03ccb",
92
"utm_source": "telegram", //from https://paywall.link/to/03ccb?utm_source=telegram&myUrlParameter=specialVar
93
"myUrlParameter": "specialVar" //from https://paywall.link/to/03ccb?utm_source=telegram&myUrlParameter=specialVar
94
},
95
"secondary_type": 50
96
}
97
}
98
}
99
}
Copied!
Last modified 6d ago
Copy link