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

Upgrade Stripe library/API version to current #1800

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

dracos
Copy link
Member

@dracos dracos commented Jun 11, 2024

Similar (hopefully identical?) to mysociety/mapit.mysociety.org#158
so we can get on current Stripe API version, and improve downgrade behaviour.

Copy link
Member

@struan struan left a comment

Choose a reason for hiding this comment

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

one tiny question but assuming that's fine it looks good.

];
if ($form_data['coupon']) {
$args['coupon'] = $form_data['coupon'];
} elseif ($this->stripe->discount) {
Copy link
Member

Choose a reason for hiding this comment

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

I'm assuming this is just saying if there was a discount and there is no longer a discount then clear the discount?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, exactly, I think update only changes the things you provide.

@dracos dracos force-pushed the stripe-upgrade branch 2 times, most recently from 8032e44 to bd82074 Compare June 21, 2024 14:02
Use the new Subscription Schedules so that downgrade will only apply
from the next billing period.
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.

None yet

2 participants