Skip to content

Upgrade Stripe SDK to Support 100% Off Coupons #412

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

Closed

Conversation

antonioperez
Copy link

@antonioperez antonioperez commented Apr 2, 2025

Description

Fixes #229

This PR updates the Stripe SDK (2025-02-24.acacia) to enable support for 100% off coupon codes during checkout. Stripe only allows no-cost (free) orders starting from API version 2023-08-16. By default, the checkout will allow promo codes.

Reference: Stripe API Changelog – 2023-08-16

Screenshot 2025-04-01 at 6 06 27 PM

Contributor Checklist

@antonioperez antonioperez changed the title Update stripe default promos Upgrade Stripe SDK / By default turn on promo codes Apr 2, 2025
@antonioperez antonioperez changed the title Upgrade Stripe SDK / By default turn on promo codes Upgrade Stripe SDK to Support 100% Off Coupons Apr 2, 2025
@vincanger
Copy link
Collaborator

Thanks for the contribution @antonioperez. The only thing I'm not sure of here is if the stripe sdk update affects the way the app and webhook function (see: the Open SaaS docs on Stripe API versioning). Have you tested it out or have any insight here?

@antonioperez
Copy link
Author

antonioperez commented May 2, 2025

@vincanger

I did test the webhook process on a deployed app and I did not see any side effects.

These event types were tested on that app.

  • checkout.session.completed
  • invoice.paid
  • customer.subscription.updated
  • customer.subscription.deleted

@vincanger
Copy link
Collaborator

Cool. thank you @antonioperez I'm closing this issue because I merged it into #427 and did some more updates so that we could use the latest Stripe version.

@vincanger vincanger closed this May 19, 2025
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.

Upgrade Stripe client to use API version 2023-08-16
2 participants