@@ -94,8 +94,8 @@ import {
9494 createAllowedRedirectOrigins ,
9595 createBeforeUnloadTracker ,
9696 createPageLifecycle ,
97+ disabledAllBillingFeatures ,
9798 disabledAPIKeysFeature ,
98- disabledBillingFeature ,
9999 disabledOrganizationsFeature ,
100100 errorThrower ,
101101 generateSignatureWithCoinbaseWallet ,
@@ -576,7 +576,7 @@ export class Clerk implements ClerkInterface {
576576
577577 public __internal_openCheckout = ( props ?: __internal_CheckoutProps ) : void => {
578578 this . assertComponentsReady ( this . #componentControls) ;
579- if ( disabledBillingFeature ( this , this . environment ) ) {
579+ if ( disabledAllBillingFeatures ( this , this . environment ) ) {
580580 if ( this . #instanceType === 'development' ) {
581581 throw new ClerkRuntimeError ( warnings . cannotRenderAnyCommerceComponent ( 'Checkout' ) , {
582582 code : CANNOT_RENDER_BILLING_DISABLED_ERROR_CODE ,
@@ -605,7 +605,7 @@ export class Clerk implements ClerkInterface {
605605
606606 public __internal_openPlanDetails = ( props : __internal_PlanDetailsProps ) : void => {
607607 this . assertComponentsReady ( this . #componentControls) ;
608- if ( disabledBillingFeature ( this , this . environment ) ) {
608+ if ( disabledAllBillingFeatures ( this , this . environment ) ) {
609609 if ( this . #instanceType === 'development' ) {
610610 throw new ClerkRuntimeError ( warnings . cannotRenderAnyCommerceComponent ( 'PlanDetails' ) , {
611611 code : CANNOT_RENDER_BILLING_DISABLED_ERROR_CODE ,
@@ -1060,7 +1060,7 @@ export class Clerk implements ClerkInterface {
10601060
10611061 public mountPricingTable = ( node : HTMLDivElement , props ?: PricingTableProps ) : void => {
10621062 this . assertComponentsReady ( this . #componentControls) ;
1063- if ( disabledBillingFeature ( this , this . environment ) ) {
1063+ if ( disabledAllBillingFeatures ( this , this . environment ) ) {
10641064 if ( this . #instanceType === 'development' ) {
10651065 throw new ClerkRuntimeError ( warnings . cannotRenderAnyCommerceComponent ( 'PricingTable' ) , {
10661066 code : CANNOT_RENDER_BILLING_DISABLED_ERROR_CODE ,
0 commit comments