-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stripe-adding-billing-events #427
Conversation
src/vendor/api/v1/stripe/views.py
Outdated
PAYMENT_INTENT_SUCCEDED = 'payment_intent.succeeded', _("Payment Succeeded") | ||
CHARGE_SUCCEEDED = 'charge.succeeded', _('Charge Succeeded') | ||
SOURCE_EXPIRED = 'customer.source.expired', _('Source Expired') | ||
SUBSCRIPTION_TRIAL_END = 'customer.subscription.trial_will_end', _('Trail Period Will End') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*trial period
|
||
logger.info(f"Upcoming Invoice for stripe_customer: {stripe_customer} customer_profile: {customer_profile}") | ||
|
||
stripe_invoice_upcoming.send(sender=self.__class__, customer_profile=customer_profile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this sends a signal to the customer profile on the TC side, which we'll intercept and send an email in response?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, right here we are just triggering an event. We need a listener on TC to catch the event
Notes:
StripeInvoiceUpcomingEvent
View