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 Bugfix #454

Merged
merged 2 commits into from
Jul 12, 2024
Merged

Stripe Bugfix #454

merged 2 commits into from
Jul 12, 2024

Conversation

rhimmelbauer
Copy link
Collaborator

Notes:

  • Added discount to the Stripe Subscription creation when trial days where enabled.


total_fee_percentage = self.calculate_fee_percentage(self.invoice.total, stripe_base_fee + stripe_recurring_fee + application_fee)
if hasattr(self.invoice, 'coupon_code') and self.invoice.coupon_code.count():
Copy link
Collaborator

@mgcamisa mgcamisa Jul 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be able to simplify by changing this to if hasattr(self.invoice, 'coupon_code') and coupon_code := self.invoice.coupon_code.first(): and removing the following line?

@rhimmelbauer rhimmelbauer merged commit d1bb51d into develop Jul 12, 2024
1 check passed
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