@@ -94,8 +94,8 @@ import {
94
94
createAllowedRedirectOrigins ,
95
95
createBeforeUnloadTracker ,
96
96
createPageLifecycle ,
97
+ disabledAllBillingFeatures ,
97
98
disabledAPIKeysFeature ,
98
- disabledBillingFeature ,
99
99
disabledOrganizationsFeature ,
100
100
errorThrower ,
101
101
generateSignatureWithCoinbaseWallet ,
@@ -576,7 +576,7 @@ export class Clerk implements ClerkInterface {
576
576
577
577
public __internal_openCheckout = ( props ?: __internal_CheckoutProps ) : void => {
578
578
this . assertComponentsReady ( this . #componentControls) ;
579
- if ( disabledBillingFeature ( this , this . environment ) ) {
579
+ if ( disabledAllBillingFeatures ( this , this . environment ) ) {
580
580
if ( this . #instanceType === 'development' ) {
581
581
throw new ClerkRuntimeError ( warnings . cannotRenderAnyCommerceComponent ( 'Checkout' ) , {
582
582
code : CANNOT_RENDER_BILLING_DISABLED_ERROR_CODE ,
@@ -605,7 +605,7 @@ export class Clerk implements ClerkInterface {
605
605
606
606
public __internal_openPlanDetails = ( props : __internal_PlanDetailsProps ) : void => {
607
607
this . assertComponentsReady ( this . #componentControls) ;
608
- if ( disabledBillingFeature ( this , this . environment ) ) {
608
+ if ( disabledAllBillingFeatures ( this , this . environment ) ) {
609
609
if ( this . #instanceType === 'development' ) {
610
610
throw new ClerkRuntimeError ( warnings . cannotRenderAnyCommerceComponent ( 'PlanDetails' ) , {
611
611
code : CANNOT_RENDER_BILLING_DISABLED_ERROR_CODE ,
@@ -1060,7 +1060,7 @@ export class Clerk implements ClerkInterface {
1060
1060
1061
1061
public mountPricingTable = ( node : HTMLDivElement , props ?: PricingTableProps ) : void => {
1062
1062
this . assertComponentsReady ( this . #componentControls) ;
1063
- if ( disabledBillingFeature ( this , this . environment ) ) {
1063
+ if ( disabledAllBillingFeatures ( this , this . environment ) ) {
1064
1064
if ( this . #instanceType === 'development' ) {
1065
1065
throw new ClerkRuntimeError ( warnings . cannotRenderAnyCommerceComponent ( 'PricingTable' ) , {
1066
1066
code : CANNOT_RENDER_BILLING_DISABLED_ERROR_CODE ,
0 commit comments