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

Fixed Stripe recurring payment M and Y conversion #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alan7sage
Copy link

Fixed bug where 1M is incorrectly converted to 30D and 1Y incorrectly converted to 365D.

I modified the “get_plan()” method to the code below and tested as working for 23D, 2W, 1M and 1Y.
See: https://forums.wpsharks.com/t/stripe-monthly-subscriptions-are-30-days-long-instead-of-one-month/6893

(this is my first time doing a "pull request", I hope I did it right!)

Fixed bug where 1M is incorrectly converted to 30D and 1Y incorrectly converted to 365D.

I modified the “get_plan()” method to the code below and tested as working for 23D, 2W, 1M and 1Y. 
See: https://forums.wpsharks.com/t/stripe-monthly-subscriptions-are-30-days-long-instead-of-one-month/6893
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.

1 participant