Title: Missing Secret Key
Last modified: October 21, 2020

---

# Missing Secret Key

 *  Resolved [Ibby](https://wordpress.org/support/users/ibby/)
 * (@ibby)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/missing-secret-key/)
 * Hi,
 * I’m having a rather odd error with a development site this morning that I’ve 
   not experienced before. I am attempting to run some test payments through on 
   my WC store. When I pay through checkout with a test card, I am transferred to
   the payment success page but in the backend, my order is raised as “draft”.
 * Checking the logs, I am receiving the following error:
 *     ```
       2020-10-21T09:12:49+00:00 DEBUG 
       ====Stripe Version: 4.5.2====
       ====Start Log====
       Error: Unable to verify domain - missing secret key.
       ====End Log====
       ```
   
 * I checked logs in my Stripe account and I’m not seeing any errors at all both
   the REQUEST and POST bodies are returning 200 successes and the endpoint seems
   to be functioning correctly (source.chargeable is returning success). However
   the charge is not appearing in my Stripe account and I’m not getting a return
   code to WC.
 * I’ve reset my API keys and webhook secret and triple and quadruple checked all
   of my settings, but nothing seems to be working. Would very much appreciate some
   help with this.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Support [wpnomad a11n](https://wordpress.org/support/users/wpnomad/)
 * (@wpnomad)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/missing-secret-key/#post-13565666)
 * Hi [@ibby](https://wordpress.org/support/users/ibby/) ,
 * Did you try placing the order via “Apple Pay” payment request button?
 * If so, then make sure that your domain is verified for Apple Pay as per the steps
   here: [https://docs.woocommerce.com/document/stripe/#apple-pay](https://docs.woocommerce.com/document/stripe/#apple-pay)
 * Do let us know how that goes and if you need any further help from us.
 *  Thread Starter [Ibby](https://wordpress.org/support/users/ibby/)
 * (@ibby)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/missing-secret-key/#post-13566928)
 * Hi [@wpnomad](https://wordpress.org/support/users/wpnomad/) thank you for getting
   back to me!
 * No, I have the apple/google pay button disabled for the moment until this is 
   sorted out. The checkout is completed through the regular WC checkout button.
 *  [Mike Straw](https://wordpress.org/support/users/mikestraw/)
 * (@mikestraw)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/missing-secret-key/#post-13569240)
 * Hi [@ibby](https://wordpress.org/support/users/ibby/) ,
 * That message usually comes from the payment buttons and is independent of other
   Stripe logs.
 * You can get some more logs generated by going to **WooCommerce > Settings > Payments
   > Stripe** and activating Logging.
     Link to image: [https://d.pr/i/Jw2BVy](https://d.pr/i/Jw2BVy)
   </p>
 * Once you do that, Stripe will create debug logs under **WooCommerce > Status 
   > Logs**. Click the dropdown and the logs will contain `stripe` with a date. 
   Choose a log and click the **View** button.
 * If you need help interpreting those logs, feel free to share them.
    -  This reply was modified 5 years, 7 months ago by [Mike Straw](https://wordpress.org/support/users/mikestraw/).
 *  Thread Starter [Ibby](https://wordpress.org/support/users/ibby/)
 * (@ibby)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/missing-secret-key/#post-13571488)
 * Hi [@mikestraw](https://wordpress.org/support/users/mikestraw/)
 * Ok I had logs enabled already for testing so here’s the full transcript:
 *     ```
       2020-10-21T09:12:48+00:00 DEBUG 
       ====Stripe Version: 4.5.2====
       ====Start Log====
       Domain association file updated.
       ====End Log====
   
       2020-10-21T09:12:49+00:00 DEBUG 
       ====Stripe Version: 4.5.2====
       ====Start Log====
       Error: Unable to verify domain - missing secret key.
       ====End Log====
   
       2020-10-21T09:14:06+00:00 DEBUG 
       ====Stripe Version: 4.5.2====
       ====Start Log====
       Error: Unable to verify domain - missing secret key.
       ====End Log====
   
       2020-10-21T09:46:37+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T09:47:27+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T09:48:08+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T09:51:02+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T09:51:39+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T09:52:05+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T09:54:19+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T10:05:17+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Error: Unable to verify domain - Expired API Key provided: sk_test_*********************************************************************************************9t3N0l
       ====End Log====
   
       2020-10-21T10:06:02+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Error: Unable to verify domain - Expired API Key provided: sk_test_*********************************************************************************************9t3N0l
       ====End Log====
   
       2020-10-21T10:06:03+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T10:06:30+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T10:08:12+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T10:08:24+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T10:08:28+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Error: Unable to verify domain - missing secret key.
       ====End Log====
   
       2020-10-21T10:08:31+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Error: Unable to verify domain - missing secret key.
       ====End Log====
   
       2020-10-21T10:09:42+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Error: Unable to verify domain - missing secret key.
       ====End Log====
   
       2020-10-21T10:09:43+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T10:11:20+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T10:11:24+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T10:14:32+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T10:14:42+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
   
       2020-10-21T10:14:47+00:00 DEBUG 
       ====Stripe Version: 4.5.3====
       ====Start Log====
       Your domain has been verified with Apple Pay!
       ====End Log====
       ```
   
 *  [Mike Straw](https://wordpress.org/support/users/mikestraw/)
 * (@mikestraw)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/missing-secret-key/#post-13572096)
 * Hey [@ibby](https://wordpress.org/support/users/ibby/) ,
 * Based on the end of that log, it looks like the Appple Pay issue may be fixed?
 * > 2020-10-21T10:14:47+00:00 DEBUG
   >  ====Stripe Version: 4.5.3==== ====Start Log
   > ==== Your domain has been verified with Apple Pay! ====End Log====
   > Is the issue with Apple Pay still happening? I think we may need to understand
   > the setup and steps you’re going through to get this error.
   > * Is Stripe in test or live mode?
   >  * Does regular checkout via Stripe work?(
   > Based on your original message, I’m guessing not, but wanted to be sure). *
   > What is the exact information you see after checkout? * What do the order notes
   > show after you’ve checked out? * When you say that your order “is raised as“
   > draft””, do you mean that it’s actually an unpublished draft?
   > The draft order is highly unusual, and may be indicating a deeper WordPress
   > issue. I suspect this may be caused by a security setting on your site, a conflict
   > with your theme or with another plugin.
   > Is there anything on your site preventing posts from being published directly?
   > If that’s not something you set up, then I think a conflict is the most likely
   > culprit. The best way to determine this is to:
    - Temporarily switch your theme to [Storefront](https://www.woocommerce.com/storefront/)
    - Disable all plugins except for WooCommerce
    - Repeat the action that is causing the problem
 * If you’re not seeing the same problem after completing the conflict test, then
   you know the problem was with the plugins and/or theme you deactivated. To figure
   out which plugin is causing the problem, reactivate your other plugins one by
   one, testing after each, until you find the one causing conflict. [You can find a more detailed explanation on how to do a conflict test here.](https://docs.woocommerce.com/document/how-to-test-for-conflicts/)
 * Let us know how that goes!
 *  Thread Starter [Ibby](https://wordpress.org/support/users/ibby/)
 * (@ibby)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/missing-secret-key/#post-13575308)
 * Hi [@mikestraw](https://wordpress.org/support/users/mikestraw/)
 * Right so I followed your gudelines and narrowed the issue down to the WC “Order
   Status Manager” plugin. Even if I rename one of the statuses, the issue starts
   again. I have it disabled for now and the checkout process is working perfectly.
 * Not sure if you would be able to help with this or should I chase this up with
   WC?
 *  Plugin Support [Ross V. a11n](https://wordpress.org/support/users/rossviviano/)
 * (@rossviviano)
 * Automattic Happiness Engineer
 * [5 years, 7 months ago](https://wordpress.org/support/topic/missing-secret-key/#post-13581088)
 * Hi there,
 * Good sleuthing! For this, head to the following link, and select Order Status
   Manager from the dropdown. To ensure things go smoothly, please be logged into
   the WooCommerce.com account that holds the license for the extension.
 * [https://woocommerce.com/my-account/create-a-ticket/](https://woocommerce.com/my-account/create-a-ticket/)
 * Best,
 * Ross
 *  Plugin Support [Ross V. a11n](https://wordpress.org/support/users/rossviviano/)
 * (@rossviviano)
 * Automattic Happiness Engineer
 * [5 years, 7 months ago](https://wordpress.org/support/topic/missing-secret-key/#post-13609982)
 * Hi again,
 * We haven’t heard from you in a while here in this thread, so I’m going to mark
   this as resolved. Feel free to start a new thread if you have any more questions!
 * Best,
 * Ross

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Missing Secret Key’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-stripe/assets/icon-256x256.png?rev=3177277)
 * [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [Ross V. a11n](https://wordpress.org/support/users/rossviviano/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/missing-secret-key/#post-13609982)
 * Status: resolved