mirror of
https://github.com/bitwarden/server.git
synced 2024-11-21 12:05:42 +01:00
Updated customer metadata when updating to use bank account (#5050)
This commit is contained in:
parent
5227ee7d90
commit
77cde50ee1
@ -768,8 +768,9 @@ public class SubscriberService(
|
|||||||
{
|
{
|
||||||
var metadata = customer.Metadata ?? new Dictionary<string, string>();
|
var metadata = customer.Metadata ?? new Dictionary<string, string>();
|
||||||
|
|
||||||
if (metadata.ContainsKey(BraintreeCustomerIdKey))
|
if (metadata.TryGetValue(BraintreeCustomerIdKey, out var value))
|
||||||
{
|
{
|
||||||
|
metadata[BraintreeCustomerIdOldKey] = value;
|
||||||
metadata[BraintreeCustomerIdKey] = null;
|
metadata[BraintreeCustomerIdKey] = null;
|
||||||
|
|
||||||
await stripeAdapter.CustomerUpdateAsync(customer.Id, new CustomerUpdateOptions
|
await stripeAdapter.CustomerUpdateAsync(customer.Id, new CustomerUpdateOptions
|
||||||
|
Loading…
Reference in New Issue
Block a user