Przeglądaj źródła

Add test URL to invoice metadata

Alan Lam 2 lat temu
rodzic
commit
1005d5ab86
1 zmienionych plików z 1 dodań i 0 usunięć
  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" => [