فهرست منبع

zen: accept tax id

Frank 6 ماه پیش
والد
کامیت
1ba0155943
1فایلهای تغییر یافته به همراه10 افزوده شده و 3 حذف شده
  1. 10 3
      packages/console/core/src/billing.ts

+ 10 - 3
packages/console/core/src/billing.ts

@@ -206,9 +206,6 @@ export namespace Billing {
               customer_email: user.email,
               customer_email: user.email,
               customer_creation: "always",
               customer_creation: "always",
             }),
             }),
-        metadata: {
-          workspaceID: Actor.workspace(),
-        },
         currency: "usd",
         currency: "usd",
         invoice_creation: {
         invoice_creation: {
           enabled: true,
           enabled: true,
@@ -220,6 +217,16 @@ export namespace Billing {
         payment_method_data: {
         payment_method_data: {
           allow_redisplay: "always",
           allow_redisplay: "always",
         },
         },
+        customer_update: {
+          name: "auto",
+          address: "auto",
+        },
+        tax_id_collection: {
+          enabled: true,
+        },
+        metadata: {
+          workspaceID: Actor.workspace(),
+        },
         success_url: successUrl,
         success_url: successUrl,
         cancel_url: cancelUrl,
         cancel_url: cancelUrl,
       })
       })