@@ -1219,7 +1219,7 @@ public async Task ChangePlanAsync_FreePlanCancelsActiveStripeSubscriptions()
12191219 public async Task ChangePlanAsync_StripeBillingClientThrows_ReturnsFailure ( )
12201220 {
12211221 // Arrange
1222- StripeBillingClient . CreateCustomerException = new InvalidOperationException ( "Stripe unavailable" ) ;
1222+ StripeBillingClient . CreateCustomerException = new StripeException ( "Stripe unavailable" ) ;
12231223
12241224 // Act
12251225 var result = await WithBillingEnabledAsync ( ( ) =>
@@ -1239,7 +1239,7 @@ public async Task ChangePlanAsync_StripeBillingClientThrows_ReturnsFailure()
12391239 // Assert
12401240 Assert . NotNull ( result ) ;
12411241 Assert . False ( result . Success ) ;
1242- Assert . Equal ( "An error occurred while changing plans. Please try again." , result . Message ) ;
1242+ Assert . Equal ( "An error occurred while changing plans. Please try again or contact support ." , result . Message ) ;
12431243 Assert . Empty ( StripeBillingClient . CreatedSubscriptionOptions ) ;
12441244 }
12451245
@@ -1248,7 +1248,7 @@ public async Task ChangePlanAsync_NewCustomerSubscriptionFails_PreservesStripeCu
12481248 {
12491249 // Arrange
12501250 StripeBillingClient . CustomerToReturn = new Customer { Id = "cus_created" } ;
1251- StripeBillingClient . CreateSubscriptionException = new InvalidOperationException ( "Stripe unavailable" ) ;
1251+ StripeBillingClient . CreateSubscriptionException = new StripeException ( "Stripe unavailable" ) ;
12521252
12531253 // Act
12541254 var result = await WithBillingEnabledAsync ( ( ) =>
@@ -1268,7 +1268,7 @@ public async Task ChangePlanAsync_NewCustomerSubscriptionFails_PreservesStripeCu
12681268 // Assert
12691269 Assert . NotNull ( result ) ;
12701270 Assert . False ( result . Success ) ;
1271- Assert . Equal ( "An error occurred while changing plans. Please try again." , result . Message ) ;
1271+ Assert . Equal ( "An error occurred while changing plans. Please try again or contact support ." , result . Message ) ;
12721272
12731273 var organization = await _organizationRepository . GetByIdAsync ( SampleDataService . FREE_ORG_ID ) ;
12741274 Assert . NotNull ( organization ) ;
@@ -1284,7 +1284,7 @@ public async Task ChangePlanAsync_ExistingCustomerSubscriptionFails_DoesNotPersi
12841284 // Arrange
12851285 await SetStripeCustomerIdAsync ( SampleDataService . FREE_ORG_ID , "cus_existing" ) ;
12861286 StripeBillingClient . Subscriptions . Add ( CreateStripeSubscription ( "sub_active" , "si_active" ) ) ;
1287- StripeBillingClient . UpdateSubscriptionException = new InvalidOperationException ( "Stripe unavailable" ) ;
1287+ StripeBillingClient . UpdateSubscriptionException = new StripeException ( "Stripe unavailable" ) ;
12881288
12891289 // Act
12901290 var result = await WithBillingEnabledAsync ( ( ) =>
@@ -1304,7 +1304,7 @@ public async Task ChangePlanAsync_ExistingCustomerSubscriptionFails_DoesNotPersi
13041304 // Assert
13051305 Assert . NotNull ( result ) ;
13061306 Assert . False ( result . Success ) ;
1307- Assert . Equal ( "An error occurred while changing plans. Please try again." , result . Message ) ;
1307+ Assert . Equal ( "An error occurred while changing plans. Please try again or contact support ." , result . Message ) ;
13081308 Assert . NotEmpty ( StripeBillingClient . UpdatedSubscriptions ) ;
13091309
13101310 var organization = await _organizationRepository . GetByIdAsync ( SampleDataService . FREE_ORG_ID ) ;
@@ -1450,7 +1450,7 @@ public async Task GetInvoiceAsync_StripeInvoice_ReturnsMappedInvoice()
14501450 public Task GetInvoiceAsync_StripeBillingClientThrows_ReturnsNotFound ( )
14511451 {
14521452 // Arrange
1453- StripeBillingClient . GetInvoiceException = new InvalidOperationException ( "Stripe unavailable" ) ;
1453+ StripeBillingClient . GetInvoiceException = new StripeException ( "Stripe unavailable" ) ;
14541454
14551455 // Act & Assert
14561456 return WithBillingEnabledAsync ( ( ) =>
0 commit comments