Skip to content

Commit 07c5906

Browse files
committed
Add "source" and "url" fields to invoice metadata
1 parent 8048e80 commit 07c5906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

woocommerce-gateway-lightning.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function process_payment( $order_id ) {
116116
'currency' => $order->get_currency(),
117117
'amount' => $order->get_total(),
118118
'description' => self::make_desc($order),
119-
'metadata' => [ 'order_id' => $order->get_id() ],
119+
'metadata' => [ 'source' => 'woocommerce-gateway', 'order_id' => $order->get_id(), 'url' => get_home_url() ],
120120
'webhook' => self::get_webhook_url($order->get_id())
121121
]);
122122
$this->update_invoice($order, $invoice);

0 commit comments

Comments
 (0)