Posted: November 13, 2018 at 4:40 am
|
Hi am using EE4 with Stripe payment gateway connected. When customer comes to pay the payment fails with this error: Expired API Key provided: I have had this problem quite a few times, especially since the gateway changed and I had to connect the Stripe account directly (in the past I would manually put in the Stripe pk_live and pk_test keys). Hitherto, I have dealt with this by disconnecting then reconnecting the Stripe account – I then get taken to Stripe and asked to confirm the connecting of the account, and then the problem disappears. Now, however, I cannot disconnect the Stripe account at all. It remains connected whatever I do! I press the “Disconnect” button but nothing happens. It still remains connected. I clear the browser cache but no luck, try a browser with which I have not viewed that page before – but no luck. I try deactivating and reactivating the Stripe plugin How can I reset things so that I can connect with Stripe with fresh settings? As it is this error has been happening about once a month and frustrating the heck out of my customers. It seems as if there are some old settings still lurking in the system which are screwing things up and need to be purged. Your prompt assistance would be gratefully received. |
Hi Alan, Usually when clicking the disconnect button does nothing there either a JavaScript error being thrown in the admin which prevents out JS from running when the button is clicked, or something is hijacking the request and preventing EE from disconnecting. If you open Chrome Dev Tools (or similar), open the ‘console’ section and then click the button, do you see any error there? |
|
|
Thanks for the tip – there was a plugin conflict. I removed the offending plugin and I can now disconnect and reconnect Stripe, and as a result, the Stripe gateway is working again without throwing an error. However I have experienced this Stripe error off and on ever since the connection method of the plugin changed – every so often the customers start getting this error:
Connecting and Reconnecting Stripe fixes this error, but is there anything I can do to prevent this happening in the first place? |
I’ve been looking over the code and can’t see any reason for the PM to switch to using an old key/method to connect to Stripe. When you click the disconnect button it removes all Stripe details and then when you reconnect it saves them all again. Do you have, or have you ever, used the Payment methods pro add-on to create multiple ‘instances’ of the Stripe payment method? |
|
|
No I have never used the Payment Methods pro addon |
OK, so the more I’m looking into this, the less I’m finding that would point to an issue with the keys. As your connected right now I don’t think I’ll find any clues on what is happening, but on the next time it happens can I take a look on the site before you re-link it? If so you can send login details using this form: https://eventespresso.com/send-login-details/ Note I’ll need to add some debugging code to the site so FTP credentials will be required. |
|
The support post ‘Stripe Error: "Expired API Key provided: pk_live,,,"’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.