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:
@@ -65,7 +65,7 @@ abstract class EventNotification
|
||||
|
||||
/**
|
||||
* Helper for constructing an Event Notification. Doesn't perform signature validation, so you
|
||||
* should use \Stripe\BaseStripeClient::parseEventNotification instead for
|
||||
* should use \Stripe\BaseStripeClient#parseEventNotification instead for
|
||||
* initial handling. This is useful in unit tests and working with EventNotifications that you've
|
||||
* already validated the authenticity of.
|
||||
*
|
||||
@@ -78,12 +78,6 @@ abstract class EventNotification
|
||||
{
|
||||
$json = json_decode($jsonStr, true);
|
||||
|
||||
if (isset($json['object']) && 'event' === $json['object']) {
|
||||
throw new \Stripe\Exception\UnexpectedValueException(
|
||||
'You passed a webhook payload to StripeClient::parseEventNotification, which expects an event notification. Use Webhook::constructEvent instead.'
|
||||
);
|
||||
}
|
||||
|
||||
$class = UnknownEventNotification::class;
|
||||
$eventNotificationTypes = EventNotificationTypes::v2EventMapping;
|
||||
if (\array_key_exists($json['type'], $eventNotificationTypes)) {
|
||||
|
||||
Reference in New Issue
Block a user