Explorar o código

Add test URL to invoice metadata

Alan Lam %!s(int64=2) %!d(string=hai) anos
pai
achega
1005d5ab86
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      engine/helpers/stripe_helper.php

+ 1 - 0
engine/helpers/stripe_helper.php

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