Jump to content
thirty bees forum
  • 0

migrated site and now have many errors


RonGin

Question

HI, I have changed hosting form A2 to HostGator and now when I check out i get error on checkout and sometimes on sign in.  I contacted stripe and they told me that it is a problem with the module but I don't see how? Any suggestion?

Thanks Ron

Expired API Key provided: sk_live_Yw****************************EUmn

in file modules/stripe/classes/GuzzleClient.php at line 237

Source file: modules/stripe/classes/GuzzleClient.php

218:                    $rheaders[$name] = $values;
219:                }
220:            }
221:        } catch (BadResponseException $e) {
222:            $headers = [];
223:            foreach ($e->getResponse()->getHeaders() as $name => $values) {
224:                if (is_array($values)) {
225:                    $headers[$name] = implode(', ', $values);
226:                } elseif (is_string($values)) {
227:                    $headers[$name] = $values;
228:                }
229:            }
230:            $message = 'Could not connect with Stripe';
231:            try {
232:                $json = json_decode((string)$e->getResponse()->getBody(), true);
233:                if (isset($json['error']['message'])) {
234:                    $message = $json['error']['message'];
235:                }
236:            } catch (\Exception $ignored) {}
237:            throw new Error\ApiConnection(
238:                $message,
239:                $e->getResponse()->getStatusCode(),
240:                (string) $e->getResponse()->getBody(),
241:                json_encode((string) $e->getResponse()->getBody()),
242:                $headers
243:            );
244:        } catch (\Exception $e) {
245:            throw new Error\ApiConnection('Could not connect with Stripe: ' . $e);
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...