mirror of
https://github.com/bitwarden/server
synced 2025-12-17 16:53:23 +00:00
add support for passing payment method type
This commit is contained in:
@@ -171,6 +171,11 @@ namespace Bit.Core.Services
|
||||
var stripePaymentMethod = paymentMethodType == PaymentMethodType.Card ||
|
||||
paymentMethodType == PaymentMethodType.BankAccount;
|
||||
|
||||
if(paymentMethodType == PaymentMethodType.BankAccount)
|
||||
{
|
||||
throw new GatewayException("Bank account payment method is not supported at this time.");
|
||||
}
|
||||
|
||||
if(user.Gateway == GatewayType.Stripe && !string.IsNullOrWhiteSpace(user.GatewayCustomerId))
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user