Exemplo n.º 1
0
        public async Task <GetStripeInfoResponse> GetStripeInfoAsync()
        {
            var donation = await _stripe.GetDonationInfo(DateTime.UtcNow);

            return(new GetStripeInfoResponse
            {
                ApiKey = _stripeOptions.CurrentValue.PublicKey,
                SupporterPrice = _stripeOptions.CurrentValue.SupporterPrice,
                DonationProgress = donation.Progress,
                DonationGoal = _stripeOptions.CurrentValue.DonationGoal
            });
        }