Jump to content

You must update your Stripe configuration to use the correct keys


Recommended Posts

After upgrading to 8.11 we get a message "You must update your Stripe configuration to use the correct keys. Click here to update the configuration".

Following the link it takes you to a page "Click here to activate and configure the WHMCS app in my Stripe account." This link takes you to  https://marketplace.stripe.com/apps/whmcs-restricted-auth-keys and not anywhere to update the configuration. Bit confusing?

 

 

 

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @paulie,

  1. Click the "Install App" button at https://marketplace.stripe.com/apps/whmcs-restricted-auth-keys
  2. Once the app is installed, click "Continue to App Settings", and you'll be presented with the new keys.
  3. Enter they new keys into the Stripe section of WHMCS at Configuration > System Settings > Payment Gateways.
Link to comment
Share on other sites

4 hours ago, WHMCS John said:

Hi @paulie,

  1. Click the "Install App" button at https://marketplace.stripe.com/apps/whmcs-restricted-auth-keys
  2. Once the app is installed, click "Continue to App Settings", and you'll be presented with the new keys.
  3. Enter they new keys into the Stripe section of WHMCS at Configuration > System Settings > Payment Gateways.

Ah, that makes sense.

So you must be logged in to your Stripe Account in the same browser.  Also after changing the settings, I had to log out of WHMCS, then log back in for the message to finally be removed.

Thanks for the help

Link to comment
Share on other sites

Hi

I got connection problem since the update. 

I did as described above but still not able to connect correctly to Stripe.

APP is installed on Stripe.
Publishable: pk_live....
Restricted: rk_live....

WHMCS version: 8.11.1.

My error message is:

Could not connect to Stripe (https://api.stripe.com/v1/customers). Please check your internet connection and try again. If this problem persists, you should check Stripe's service status at https://twitter.com/stripestatus, or let us know at support@stripe.com. (Network error [errno 28]: Failed to connect to api.stripe.com port 443 after 26254 ms: Couldn't connect to server)
Your changes have not been saved.

Where should I look for a solution?

 

Thanks
/Rasmus

Link to comment
Share on other sites

Hi Rasmus,

This sounds like a network connectivity issue. If you have access to the hosting server you can  try to connect using CURL. You should get a response back as per below.

root@hanus:~# curl https://api.stripe.com/v1/customers
{
  "error": {
    "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/.",
    "type": "invalid_request_error"
  }
}

If there is no response looks like a firewall or routing issue

Link to comment
Share on other sites

18 hours ago, paulie said:

Hi Rasmus,

This sounds like a network connectivity issue. If you have access to the hosting server you can  try to connect using CURL. You should get a response back as per below.

root@hanus:~# curl https://api.stripe.com/v1/customers
{
  "error": {
    "message": "You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/.",
    "type": "invalid_request_error"
  }
}

If there is no response looks like a firewall or routing issue

Hi @paulie

Thanks for your response!

It seems like the network was the problem. With help from my hosting partner I connected successfully to the API. 
Anyways, thanks for your help.

/Rasmus

Link to comment
Share on other sites

I could not update my Stripe key.

This is the error generated by the Stripe API when I try update the key in the Stripe payment gateway.  

invalid_request_error
The provided key 'rk_live_**********************************
***********************************************************3cJbdf' 
does not have the required permissions for this endpoint on account 'acct_********'. 
Having the 'rak_accounts_kyc_basic_read' permission 
would allow this request to continue.

 I am currently using WHMCS v8.10.1 with the standard Stripe payment gateway.  Was the app on the Stripe end updated recently?  It currently says v1.0.2. 

I opened a ticket with WHMCS and they said that they were also able to reproduce this error on their end and are looking into it. 
Case #  #MODULE-8144

If I were to update WHMCS to v8.11.1 will that fix this? What if I tried generating the restricted key manually instead of using the app?    I obviously need to get this working before Oct29, which is only 30 days away. 

Edited by mustardman
Link to comment
Share on other sites

On 9/30/2024 at 12:00 PM, mustardman said:

I could not update my Stripe key.

This is the error generated by the Stripe API when I try update the key in the Stripe payment gateway.  

invalid_request_error
The provided key 'rk_live_**********************************
***********************************************************3cJbdf' 
does not have the required permissions for this endpoint on account 'acct_********'. 
Having the 'rak_accounts_kyc_basic_read' permission 
would allow this request to continue.

 I am currently using WHMCS v8.10.1 with the standard Stripe payment gateway.  Was the app on the Stripe end updated recently?  It currently says v1.0.2. 

I opened a ticket with WHMCS and they said that they were also able to reproduce this error on their end and are looking into it. 
Case #  #MODULE-8144

If I were to update WHMCS to v8.11.1 will that fix this? What if I tried generating the restricted key manually instead of using the app?    I obviously need to get this working before Oct29, which is only 30 days away. 

Only 27 more days before I am put out of business.  Didn't get a sense of urgency how serious a problem this is from the response to my ticket.  Need a solution.  Surely I am not the only one with this problem.

Edited by mustardman
Link to comment
Share on other sites

2 hours ago, mustardman said:

Only 27 more days before I am put out of business.  Didn't get a sense of urgency how serious a problem this is from the response to my ticket.  Need a solution.  Surely I am not the only one with this problem.

Can't replicate on 8.11, have you reached out to Stripe also?

Link to comment
Share on other sites

1 hour ago, leemahoney3 said:

Can't replicate on 8.11, have you reached out to Stripe also?

How are you testing?  Are you already using an rk_live key?

Yes I have contacted Stripe.  First level support couldn't help.  Still waiting to hear back from the next level.  All indications so far are that it's a WHMCS problem.  Got another update from WHMCS today saying there will be a maintenance release to v8.11 to fix the problem before the deadline.  I am on v8.10.1 so looks like I may need to update to v8.11 to fix problem once they issue a maintenance release, unless they also issue a maintenance release to v8.10.  I don't like to update to a new release until it has been out for a few months but I may need to make an exception.

Edited by mustardman
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated