Exemplo n.º 1
0
        public override async Task <bool> ProcessEvent(Event stripeEvent)
        {
            Invoice invoice  = stripeEvent.Data.Object as Invoice;
            var     customer = await customerService.GetAsync(invoice.CustomerId);

            var owners = await ownerBL.GetByNotNullFields(new Owner { Email = customer.Email });

            //ToDo: Send emails for invoice payment fail event

            return(await Task.FromResult <bool>(true));
        }
Exemplo n.º 2
0
        public override async Task <bool> ProcessEvent(Event stripeEvent)
        {
            Invoice invoice  = stripeEvent.Data.Object as Invoice;
            var     customer = await customerService.GetAsync(invoice.CustomerId);

            var owners = await ownerBL.GetByNotNullFields(new Owner { Email = customer.Email });

            //ToDo: Save if we need to know until when is enable the subscription
            //ToDo: Review if subscription is enable to the gym, if not, enable it---optional
            //ToDo: Send Subscription Receipt email taking amount from invoice.AmountDue

            return(await Task.FromResult <bool>(true));
        }