Support

Home Forums Event Espresso Premium Stripe Error: "Expired API Key provided: pk_live,,,"

Stripe Error: "Expired API Key provided: pk_live,,,"

Posted: November 13, 2018 at 4:40 am

Viewing 5 reply threads


Alan Lewis

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:
pk_live_’ t**********9kPo.
Platform access may have been revoked.

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
– but when the plugin is reactivated the Stripe gateway is still showing as “connected”.

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.


Tony

  • Support Staff

November 13, 2018 at 5:38 am

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?


Alan Lewis

November 13, 2018 at 6:49 am

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:

Expired API Key provided:
pk_live_’t**********9kPo.
Platform access may havebeen revoked.

Connecting and Reconnecting Stripe fixes this error, but is there anything I can do to prevent this happening in the first place?


Tony

  • Support Staff

November 13, 2018 at 8:41 am

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?


Alan Lewis

November 13, 2018 at 10:00 am

No I have never used the Payment Methods pro addon


Tony

  • Support Staff

November 14, 2018 at 7:29 am

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/
(When it happens, not now as we don’t store login details).

Note I’ll need to add some debugging code to the site so FTP credentials will be required.

Viewing 5 reply threads

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.

Event Espresso