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

Fix redirect URLs when creating checkout sessions #164

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

ianharris-stripe
Copy link
Contributor

We were populating redirect URLs from a nonexistent env variable which causes the Stripe API to return 400s when we tried to create Checkout sessions in production. This PR changes the two affected callsites to use $NEXTAUTH_URL which is populated in both dev and prod. This fixes two actions that were broken in prod:

  • create_checkout_session debug command (cmd+shift+k)
  • create_checkout_session API on the account settings page

@ianharris-stripe ianharris-stripe merged commit 8f0663e into master Jun 18, 2024
1 check passed
@ianharris-stripe ianharris-stripe deleted the ianharris/fix-checkout-redirect-url branch June 18, 2024 16:56
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