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

Enable "Stripe key swapper" #2962

Merged

Conversation

mircobabini
Copy link
Member

@mircobabini mircobabini commented Apr 17, 2024

All Submissions:

Changes proposed in this Pull Request:

After some discussion on this topic, the best idea we came up with was adding 3 hooks.

The idea is to permit an additional snippet to change the api key Stripe is using when dealing with:

  • webhook requests (by checking an additional query arg passed by the webhook setup itself)
  • member orders (by checking the date of the first order of the chain)
  • subscriptions (by checking the sub start date)

Then, use the swap key call accordingly: Stripe\Stripe::setApiKey( 'key_to_use' )

Discussion on the slack channel: https://paidmembershipspro.slack.com/archives/GSVNCKRUG/p1712828786645169

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you successfully run tests with your changes locally?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants