mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +01:00
Handle us_bank_account in charge.succeeded (#4807)
This commit is contained in:
parent
05247d2525
commit
1199d72bfd
@ -206,6 +206,12 @@ public class StripeEventUtilityService : IStripeEventUtilityService
|
|||||||
transaction.PaymentMethodType = PaymentMethodType.Card;
|
transaction.PaymentMethodType = PaymentMethodType.Card;
|
||||||
transaction.Details = $"{card.Brand?.ToUpperInvariant()}, *{card.Last4}";
|
transaction.Details = $"{card.Brand?.ToUpperInvariant()}, *{card.Last4}";
|
||||||
}
|
}
|
||||||
|
else if (charge.PaymentMethodDetails.UsBankAccount != null)
|
||||||
|
{
|
||||||
|
var usBankAccount = charge.PaymentMethodDetails.UsBankAccount;
|
||||||
|
transaction.PaymentMethodType = PaymentMethodType.BankAccount;
|
||||||
|
transaction.Details = $"{usBankAccount.BankName}, *{usBankAccount.Last4}";
|
||||||
|
}
|
||||||
else if (charge.PaymentMethodDetails.AchDebit != null)
|
else if (charge.PaymentMethodDetails.AchDebit != null)
|
||||||
{
|
{
|
||||||
var achDebit = charge.PaymentMethodDetails.AchDebit;
|
var achDebit = charge.PaymentMethodDetails.AchDebit;
|
||||||
|
Loading…
Reference in New Issue
Block a user