Skip to content

Commit 44f4cd6

Browse files
committed
Add "source" and "url" fields to invoice metadata
1 parent 19316ac commit 44f4cd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-paywall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function ajax_make_invoice() {
7171
'currency' => $paywall->currency,
7272
'amount' => $paywall->amount,
7373
'description' => get_bloginfo('name') . ': pay to continue reading ' . get_the_title($post_id),
74-
'metadata' => [ 'post_id' => $post_id ]
74+
'metadata' => [ 'source' => 'wordpress-lightning-paywall', 'post_id' => $post_id, 'url' => get_permalink($post_id) ]
7575
]);
7676

7777
wp_send_json($invoice->id, 201);

0 commit comments

Comments
 (0)