Support » Plugin: WooCommerce Stripe Payment Gateway » Integration error – t looks like you’re using an older Stripe key

  • Resolved wpcodes

    (@codepantry)


    Environemnt:
    Wordpress 4.9.5
    Woo Commerce : 3.3.5
    WOO Comerce Stripe Gateway Version 4.1.0

    https://cl.ly/0c1D3I0O1e2t

    My stripe API key in dashbaord.stripe.com starts with pk_ and not pk_live or pk_test
    API version 2018-02-28

    How can I resolve this error

    Uncaught Error: It looks like you’re using an older Stripe key. In order to use this API, you’ll need to use a modern API key, which is prefixed with ‘pk_live_’ or ‘pk_test_’.
    You can roll your publishable key here: https://dashboard.stripe.com/account/apikeys
    at new t (?ver=3.0:1)
    at vo (?ver=3.0:1)
    at e.<anonymous> (?ver=3.0:1)
    at e.paymentRequest (?ver=3.0:1)
    at Object.startPaymentRequest (stripe-payment-request.min.js?ver=4.1.0:1)
    at Object.init (stripe-payment-request.min.js?ver=4.1.0:1)
    at HTMLDocument.<anonymous> (stripe-payment-request.min.js?ver=4.1.0:1)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter wpcodes

    (@codepantry)

    Please note that my key has not expired because I can process transactions. I am also not in test mode because I can process transactions. The main issue is that this error causes the rest of my javascript on the page not to load thus breaking things on the page. Also my stripe key is only pk_ and not pk_live

    Plugin Author royho

    (@royho)

    Have you tried rolling new keys as it suggests?

    Thread Starter wpcodes

    (@codepantry)

    Yes I have and before creating this issue. I spoke with stripe and they said it is an integration issue. Check your stripe account or open one if you do not have already and you will see that the new keys do not have a pk_live or pk_test etc

    Thread Starter wpcodes

    (@codepantry)

    And I amount saying that not having pk_live or pk_test is the main issue but points to a needed product enhancement or maintenance

    Plugin Author royho

    (@royho)

    Perhaps I am not fully understanding. You’re saying when you roll a new set of keys, it doesn’t contain the _live_ in them?

    Thread Starter wpcodes

    (@codepantry)

    Yes but please create a stripe account to troubleshoot the integration because I am nto sure that that is the only issue

    Plugin Author royho

    (@royho)

    I just tested this rolling a new key and I don’t see any issues. Please see here http://cld.wthms.co/x4VNli

    Thread Starter wpcodes

    (@codepantry)

    Well, take a look at the screen shot I took and the code I pasted earlier. Is this your code or not? If it is then you do need to resolve the integration error.
    You can clearly see that this message/error message is by woocommerce-stripe-gateway/WooCommerce Stripe Gateway

    The stripe production key/publishable key is not generate as pk_live but just pk_

    https://cl.ly/2V1n3d323w2n
    ?ver=3.0:1 Uncaught Error: It looks like you’re using an older Stripe key. In order to use this API, you’ll need to use a modern API key, which is prefixed with ‘pk_live_’ or ‘pk_test_’.
    You can roll your publishable key here: https://dashboard.stripe.com/account/apikeys
    at new t (?ver=3.0:1)
    at vo (?ver=3.0:1)
    at e.<anonymous> (?ver=3.0:1)
    at e.paymentRequest (?ver=3.0:1)
    at Object.startPaymentRequest (stripe-payment-request.min.js?ver=4.1.0:1)
    at Object.init (stripe-payment-request.min.js?ver=4.1.0:1)
    at HTMLDocument.<anonymous> (stripe-payment-request.min.js?ver=4.1.0:1)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)

    Plugin Author royho

    (@royho)

    No that is not our error message. That message comes from Stripe.

    Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Integration error – t looks like you’re using an older Stripe key’ is closed to new replies.