diff --git a/stripe.mdx b/stripe.mdx index 16b1366..04fd89e 100644 --- a/stripe.mdx +++ b/stripe.mdx @@ -223,29 +223,6 @@ If the user is subscribed, show the extra content for pro members using /[Check You'll make a product and price in Stripe for your subscription. You'll copy the STRIPE_PRICE_ID from Stripe to use in your Create app. - - Start by setting up your integration in Stripe's Test Mode. - - This lets you verify everything works without real transactions. Once tested, turn Test Mode off and repeat these steps with your live credentials. - - -#### Understanding Test Mode - -Stripe's Test Mode lets you make test versions of your products/prices. You can simulate payments without charging real cards. - - - -- Enable Test Mode in Stripe dashboard (switch in top-right) -- All products and subscriptions created are test versions -- API keys and webhooks apply to test mode only -- Payments are simulated, not real charges -- Switch to production by turning Test Mode off and repeating all setup steps - - - Always test your integration in Test Mode before going live. When you want to go live, turn Test Mode off and repeat all set up steps with your production credentials. - - - #### Make product, price, and get STRIPE_PRICE_ID @@ -255,10 +232,6 @@ Stripe's Test Mode lets you make test versions of your products/prices. You can - - - - @@ -407,32 +380,12 @@ You now can build your flows. Run through your flow in your published app. 1. Verify when you hit subscribe, you're redirected to Stripe - 2. If you've put in the keys in Test Mode, you'll see Test Mode in the Stripe checkout page + 2. After paying, you should be redirected back to your app + 3. Check in your users database to see that the signed in user is marked as subscribed + 4. After the user is subscribed, make sure the right content is shown to them - In Test Mode, your card won't be charged for real. You can use Stripe's test card numbers: - - Card number: 4242 4242 4242 4242 - - Any future expiration date - - Any 3-digit CVC - - Any postal code - - This test card will always succeed. For other test scenarios (declined, errors etc), see [Stripe's test cards documentation](https://stripe.com/docs/testing#cards). + You can use a real card to test the flow. If needed, you can easily refund the payment from your Stripe dashboard. - - 3. After paying, you should be redirected back to your app. - 4. Check in your users database to see that the signed in user is marked as subscribed - 5. After the user is subscribed, make sure the right content is shown to them. - - -### Going Live - -When you're ready to go live, turn Test Mode off and repeat the Stripe set up steps: - -- Replicate your product and price -- Make a new webhook in Stripe - -Replace the keys (STRIPE_PRICE_ID and STRIPE_WEBHOOK_SECRET) with the versions when Test Mode is off. - -Publish your app again and launch it