Stripe Payment: Rollback stipe-php from 20.0.0 back to 19.4.1 to fix a isses with adding saved paymentss, Stripe updated their API in which we will update to a later date

This commit is contained in:
johnnyq
2026-05-04 12:32:12 -04:00
parent a6d996b83f
commit 0cdb780b88
159 changed files with 281 additions and 908 deletions

View File

@@ -32,17 +32,11 @@ abstract class Webhook
$jsonError = \json_last_error();
if (null === $data && \JSON_ERROR_NONE !== $jsonError) {
$msg = "Invalid payload: {$payload} "
. "(json_last_error() was {$jsonError})";
. "(json_last_error() was {$jsonError})";
throw new Exception\UnexpectedValueException($msg);
}
if (isset($data['object']) && 'v2.core.event' === $data['object']) {
throw new Exception\UnexpectedValueException(
'You passed an event notification to Webhook::constructEvent, which expects a webhook payload. Use StripeClient::parseEventNotification instead.'
);
}
return Event::constructFrom($data);
}
}