logger.LogError("Could not find Stripe subscription ({SubscriptionID}) for subscriber ({SubscriberID})",subscriber.GatewaySubscriptionId,subscriber.Id);
logger.LogError("Could not find Stripe subscription ({SubscriptionID}) for subscriber ({SubscriberID})",
subscriber.GatewaySubscriptionId,subscriber.Id);
returnnull;
returnnull;
}
catch(StripeExceptionexception)
{
logger.LogError("An error occurred while trying to retrieve Stripe subscription ({SubscriptionID}) for subscriber ({SubscriberID}): {Error}",
logger.LogError("Cannot retrieve subscription for subscriber ({SubscriberID}) with no {FieldName}",subscriber.Id,nameof(subscriber.GatewaySubscriptionId));
logger.LogError("Cannot retrieve customer for subscriber ({SubscriberID}) with no {FieldName}",subscriber.Id,nameof(subscriber.GatewayCustomerId));
logger.LogError("Could not find Stripe subscription ({SubscriptionID}) for subscriber ({SubscriberID})",subscriber.GatewaySubscriptionId,subscriber.Id);
logger.LogError("Could not find Stripe customer ({CustomerID}) for subscriber ({SubscriberID})",
subscriber.GatewayCustomerId,subscriber.Id);
throwContactSupport();
throwContactSupport();
}
catch(StripeExceptionexception)
{
logger.LogError("An error occurred while trying to retrieve Stripe customer ({CustomerID}) for subscriber ({SubscriberID}): {Error}",
logger.LogError("Cannot retrieve customer for subscriber ({SubscriberID}) with no {FieldName}",subscriber.Id,nameof(subscriber.GatewayCustomerId));
logger.LogError("Cannot retrieve subscription for subscriber ({SubscriberID}) with no {FieldName}",subscriber.Id,nameof(subscriber.GatewaySubscriptionId));