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

File diff suppressed because one or more lines are too long

View File

@@ -36,18 +36,6 @@ class AccountPerson extends \Stripe\ApiResource
{
const OBJECT_NAME = 'v2.core.account_person';
public static function fieldEncodings()
{
return [
'relationship' => [
'kind' => 'object',
'fields' => [
'percent_ownership' => ['kind' => 'decimal_string'],
],
],
];
}
const LEGAL_GENDER_FEMALE = 'female';
const LEGAL_GENDER_MALE = 'male';

View File

@@ -14,7 +14,7 @@ namespace Stripe\V2\Core;
* @property string $description An optional description of what the event destination is used for.
* @property string[] $enabled_events The list of events to enable for this endpoint.
* @property string $event_payload Payload type of events being subscribed to.
* @property null|string[] $events_from Specifies which accounts' events route to this destination. <code>@self</code>: Receive events from the account that owns the event destination. <code>@accounts</code>: Receive events emitted from other accounts you manage which includes your v1 and v2 accounts. <code>@organization_members</code>: Receive events from accounts directly linked to the organization. <code>@organization_members/@accounts</code>: Receive events from all accounts connected to any platform accounts in the organization.
* @property null|string[] $events_from Where events should be routed from.
* @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
* @property null|\Stripe\StripeObject $metadata Metadata.
* @property string $name Event destination name.

View File

@@ -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)) {