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

[Feature] Add trial days #412

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

rafaelstz
Copy link

WHY are these changes introduced?

Fixes #0000

WHAT is this pull request doing?

It's adding 7 trial days as part of the example recurrent and one-time charge.

Checklist

Note: once this PR is merged, it becomes a new release for this template.

  • I have added/updated tests for this change
  • I have made changes to the README.md file and other related documentation, if applicable

Copy link

@sebastianpisula sebastianpisula left a comment

Choose a reason for hiding this comment

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

I tested, works!

Copy link

@Maras0830 Maras0830 left a comment

Choose a reason for hiding this comment

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

This PR is helpful, I also adjusted the code like this

Copy link

@nilsringersma nilsringersma left a comment

Choose a reason for hiding this comment

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

Hi @rafaelstz , I was working on implementing trial days and came across this PR. I like the approach and it works great. Small issue with assigning the key/value pairs in the arrays inside the Ensurebilling class. Please see the suggestions.

Thanks!

web/app/Lib/EnsureBilling.php Outdated Show resolved Hide resolved
web/app/Lib/EnsureBilling.php Outdated Show resolved Hide resolved
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.

Enable trial period billing using trialDays parameter in EnsureBilling class
4 participants