Skip to content
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

Merged
merged 7 commits into from
Sep 19, 2023
Merged

Conversation

rhimmelbauer
Copy link
Collaborator

Notes:

  • added the url to the StripeInvoiceUpcomingEvent View
  • Added StripeInvoiceUpcomingEvent View
  • adding some signal definition: stripe_upcoming_invoice

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')
Copy link
Collaborator

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)
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

@rhimmelbauer rhimmelbauer merged commit 0cb4275 into develop Sep 19, 2023
1 check passed
@rhimmelbauer rhimmelbauer deleted the stripe-adding-billing-events branch September 19, 2023 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants