mirror of
https://github.com/itflow-org/itflow
synced 2026-05-05 18:57:47 +00:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user