• Resolved farberama

    (@farberama)


    I have set up and configured the plugin according to the plugin documentation and added the testing webhook to my stripe account. Under Connect Stripe Account on the API Settings tab, it shows that my account has been connected. However, when I click the Connection Test button, I get “Mode: test. Invalid secret key. Please check your entry.” I’m assuming it mean the webhook secret key since the other keys are added automatically.

    I have debug on, but there are no error logs being generated for the plugin.

    When I test the webhook from my Stripe account I get “Test webhook error: 415

    I even deleted the webhook, recreated it, and entered the new webhook secret into the plugin, but it still doesn’t work.

    Please advise.

    Thanks in advance!

    • This topic was modified 4 years, 4 months ago by farberama.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @farberama,

    When you perform your connection test, I am wondering if there is a connection error when your server communicates with Stripe’s servers. Have you navigated to the checkout page to see if the credit card form is rendering or performed any test payments?

    That’s interesting you would receive a 415 http response code. What event did you select when performing the webhook test?

    Kind Regards,

    Thread Starter farberama

    (@farberama)

    Thanks for your reply!

    Yes, the credit card form does render. When I perform a test purchase the page hangs for a while then I get “Error processing checkout. Please try again.

    I tested the webhook with all 4 events with the same results.

    I checked the test log on my Stripe account and it is receiving the requests and sending responses. I’m thinking my server might be blocking traffic from Stripe. How would you suggest I check for that?

    Thanks!

    • This reply was modified 4 years, 4 months ago by farberama.
    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @farberama,

    Are you using a hosting service for your site? If so they will most likely need to whitelist outbound calls from your server to Stripe. If your server is self hosted then you can perform the whitelisting process yourself.

    Here is full list of the Stripe domains/IP’s that should not be blocked for outbound calls:

    https://stripe.com/docs/ips

    Kind Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Invalid secret key’ is closed to new replies.