E::ts('Unable to update the webhook %1. To correct this please delete the webhook at Stripe and then revisit this page which will recreate it correctly.',
E::ts('Unable to update the webhook %1. To correct this please delete the webhook at Stripe and then revisit this page which will recreate it correctly. Error was: %2',
[
1=>urldecode($webhook_path),
2=>htmlspecialchars($e->getMessage()),
]
),
$this->getTitle($paymentProcessor),
\Psr\Log\LogLevel::WARNING,
'fa-money'
);
}
}
else{
$message=newCRM_Utils_Check_Message(
...
...
@@ -108,7 +116,7 @@ class CRM_Stripe_Webhook {
E::ts('Problems detected with Stripe webhook! <em>Webhook path is: <a href="%1" target="_blank">%1</a>.</em>',
[1=>urldecode($webhook_path)]
),
self::getTitle($paymentProcessor),
$this->getTitle($paymentProcessor),
\Psr\Log\LogLevel::WARNING,
'fa-money'
);
...
...
@@ -129,7 +137,7 @@ class CRM_Stripe_Webhook {
1=>htmlspecialchars($e->getMessage())
]
),
self::getTitle($paymentProcessor),
$this->getTitle($paymentProcessor),
\Psr\Log\LogLevel::WARNING,
'fa-money'
);
...
...
@@ -141,7 +149,7 @@ class CRM_Stripe_Webhook {
if($attemptFix){
try{
// Try to create one.
self::createWebhook($paymentProcessor['id']);
$this->createWebhook($paymentProcessor['id']);
}
catch(Exception$e){
$messages[]=newCRM_Utils_Check_Message(
...
...
@@ -149,7 +157,7 @@ class CRM_Stripe_Webhook {
E::ts('Could not create webhook, got error from stripe <em>%1</em>',[
1=>htmlspecialchars($e->getMessage())
]),
self::getTitle($paymentProcessor),
$this->getTitle($paymentProcessor),
\Psr\Log\LogLevel::WARNING,
'fa-money'
);
...
...
@@ -162,7 +170,7 @@ class CRM_Stripe_Webhook {
'Stripe Webhook missing or needs update! <em>Expected webhook path is: <a href="%1" target="_blank">%1</a></em>',