# How to test stripe integration in Test mode?

**URL:** <https://forum.ghost.org/t/how-to-test-stripe-integration-in-test-mode/27264>\
**Category:** Memberships & subscriptions\
**Created:** [December 9, 2021, 3:02pm UTC](https://forum.ghost.org/t/how-to-test-stripe-integration-in-test-mode/27264 "2021-12-09T15:02:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dexxterr](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@dexxterr](https://forum.ghost.org/u/dexxterr)\
**Post date:** [December 9, 2021, 3:02pm UTC](https://forum.ghost.org/t/how-to-test-stripe-integration-in-test-mode/27264/1 "2021-12-09T15:02:56Z")

</div>

Hello,

I have a self-hosted instance of Ghost through Digital Ocean. I have setup everything including the integration with Stripe. While integrating with Stripe, I checked the “Test Mode” option.

But when I try to subscribe and enter a test card, I get an error saying " _ **Your card was declined. Your request was in live mode, but used a known test card.** _ "

I used the test card that is mentioned on the stripe documentation **[here](https://stripe.com/docs/testing)**. How do I test if the subscription and the Stripe transaction is working as expected?

Let me know. Thanks.

Best Regards,  
Dexxterr

---

<div class="post-metadata">

**Author:** ![inoryum](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/inoryum/32/11866_2.png) [@inoryum](https://forum.ghost.org/u/inoryum)\
**Post date:** [December 9, 2021, 3:12pm UTC](https://forum.ghost.org/t/how-to-test-stripe-integration-in-test-mode/27264/2 "2021-12-09T15:12:15Z")

</div>

According to the message, it seems you have connected your stripe to ghost as Live mode.

Can you make sure it’s connected in test mode?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/4/43d9a886f08e6a3408aaedabbcebebed770b4542.png)

If you go to Setting \> Membership & click on Connected to Stripe & verify its connected in test mode

---

<div class="post-metadata">

**Author:** ![dexxterr](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@dexxterr](https://forum.ghost.org/u/dexxterr)\
**Post date:** [December 9, 2021, 5:42pm UTC](https://forum.ghost.org/t/how-to-test-stripe-integration-in-test-mode/27264/3 "2021-12-09T17:42:12Z")

</div>

Thanks @inoryum . I wasn’t enabling the Test mode checkbox before connecting with Stripe and hence it would end up connecting in live mode. Fixed it now.

Cheers!  
Dexxterr,

---

<div class="post-metadata">

**Author:** ![inoryum](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/inoryum/32/11866_2.png) [@inoryum](https://forum.ghost.org/u/inoryum)\
**Post date:** [December 9, 2021, 5:57pm UTC](https://forum.ghost.org/t/how-to-test-stripe-integration-in-test-mode/27264/4 "2021-12-09T17:57:49Z")

</div>

you are welcome!
