';
// useful when user add wrong keys
// e.q. This API call cannot be made with a publishable API key. Please use a secret API key. You can find a list of your API keys at https://dashboard.stripe.com/account/apikeys.
echo $e->getMessage();
echo '
';
return;
}
$environment = $idealGateway->environment();
$endpoint = $idealGateway->getWebhookEndPoint();
$CI = &get_instance();
if ($CI->session->has_userdata('stripe-webhook-failure')) {
echo '';
echo 'Webhook endpoint (' . $endpoint . ') not found for ' . $environment . ' environment.';
echo '
Click
here to create the webhook directly in Stripe.';
echo '
';
} elseif ($webhook->id != get_option('ideal_module_stripe_webhook_id')) {
echo '';
echo 'The application stored Stripe webhook id does not match the configured webhook.';
echo '
Click
here to re-create the webhook directly in Stripe and delete the old webhook.';
echo '
';
} elseif ($webhook->status != 'enabled') {
echo '