Pārlūkot izejas kodu

Add test URL to invoice metadata

Alan Lam 2 gadi atpakaļ
vecāks
revīzija
1005d5ab86
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      engine/helpers/stripe_helper.php

+ 1 - 0
engine/helpers/stripe_helper.php

@@ -76,6 +76,7 @@ class StripeHelper {
 			"customer" => $customer->id,
 			"metadata" => [
 				"test_id" => $test->id,
+				"test_url" => sprintf("https://%s/account/tests/%d", DOMAIN, $test->id),
 			],
 			"days_until_due" => 0,
 			"payment_settings" => [