Преглед изворни кода

Add test URL to invoice metadata

Alan Lam пре 2 година
родитељ
комит
1005d5ab86
1 измењених фајлова са 1 додато и 0 уклоњено
  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" => [