Stripe Test Mode Setup - softerfish/fyuhls GitHub Wiki
This page is the short, testing-first version of the Stripe setup flow in fyuhls.
Use it when you want to get Stripe test payments working before you switch to live mode.
Go to:
- Admin -> Config Hub -> Monetization
In Payment Gateways, Stripe uses:
- Enable Stripe Checkout
- Secret Key
- Webhook Secret
Stripe is only treated as ready when:
- Enable Stripe Checkout is turned on
- a valid Secret Key is saved
The Webhook Secret is strongly recommended and is part of a complete test-to-live setup.
- Open the Stripe dashboard
- Turn on Test mode
- Go to the API keys area
- Copy the test secret key:
sk_test_...
Paste that into fyuhls:
- Secret Key
Turn on:
- Enable Stripe Checkout
Save Config Hub.
- In Stripe test mode, create a webhook endpoint
- Point it to:
https://yourdomain.com/payment/callback/stripe
- After creating it, Stripe gives you a signing secret
- Copy the value that looks like:
whsec_...
- Paste that into:
- Webhook Secret
The key point is to stay in test mode while creating both the API key and the webhook.
After saving the test credentials:
- open a paid package in fyuhls
- start checkout with Stripe
- complete a test payment
- return to fyuhls
- confirm the package was applied
Also test:
- canceling before payment completes
- one webhook-driven status change in your broader payment testing
Usually one of these is true:
- Enable Stripe Checkout is off
- Secret Key is blank
- the saved key is not a valid test secret key
Usually caused by:
- webhook was created in live mode instead of test mode
- wrong callback URL
- missing or wrong Webhook Secret
Make sure all three belong to the same environment:
- Stripe test dashboard mode
-
sk_test_...secret key - test-mode webhook and
whsec_...secret