Component evidence

Stripe Subscription Created Event (Events/V1CustomerSubscriptionCreatedEvent.php)

stripe-php · lib/Events/V1CustomerSubscriptionCreatedEvent.php · php · MIT
paymentsintegrationlang:php

Represents the Stripe V1 customer subscription created event and handles fetching related API objects. Reuse when processing Stripe webhook events in PHP.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/stripe/stripe-php | License: MIT | Copyright 2010-2019 Stripe, Inc. (https://stripe.com)
// Provided via justclaw.it.com; keep this notice with the code.
<?php

// File generated from our OpenAPI spec

namespace Stripe\Events;

/**
 * @property \Stripe\RelatedObject $related_object Object containing the reference to API resource relevant to the event
 */
class V1CustomerSubscriptionCreatedEvent extends \Stripe\V2\Core\Event
{
    const LOOKUP_TYPE = 'v1.customer.subscription.created';

    /**
     * Retrieves the related object from the API. Make an API request on every call.
     *
     * @return \Stripe\Subscription
     *
     * @throws \Stripe\Exception\ApiErrorException if the request fails
     */
    public function fetchRelatedObject()
    {
        $

... (truncated -- full source via MCP)