File tree Expand file tree Collapse file tree
LrmCloud.Api/Services/Billing/Models
LrmCloud.Web/Pages/Settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public sealed class PaymentMethodInfo
6161 public string DisplayString => Type switch
6262 {
6363 PaymentMethodType . Card => $ "{ CardBrand ? . ToUpperInvariant ( ) ?? "Card" } •••• { CardLast4 } ",
64- PaymentMethodType . PayPal => $ "PayPal ( { PayPalEmail } ) ",
64+ PaymentMethodType . PayPal => "PayPal" ,
6565 PaymentMethodType . BankAccount => $ "{ BankName ?? "Bank" } •••• { BankLast4 } ",
6666 _ => "Unknown payment method"
6767 } ;
Original file line number Diff line number Diff line change 9999 {
100100 <RadzenButton Variant =" Radzen.Variant.Text" ButtonStyle =" ButtonStyle.Success" Icon =" refresh" Text =" Reactivate Subscription" Click =" @ReactivateSubscription" class =" rz-mt-2" />
101101 }
102- else if (! _subscription .CancelAtPeriodEnd && ! string .IsNullOrEmpty (_subscription .PaymentSubscriptionId ))
102+ else if (! _subscription .CancelAtPeriodEnd && ! string .IsNullOrEmpty (_subscription .PaymentSubscriptionId ) && _subscription . Status ? . ToLower () != " incomplete " )
103103 {
104+ @* Hide Cancel Subscription when incomplete - PaymentSubscriptionId points to pending upgrade, not current subscription *@
104105 <RadzenButton Variant =" Radzen.Variant.Text" ButtonStyle =" ButtonStyle.Danger" Icon =" cancel" Text =" Cancel Subscription" Click =" @ShowCancelDialog" class =" rz-mt-2" />
105106 }
106107 }
You can’t perform that action at this time.
0 commit comments