# give/4.16.9/src/PaymentGateways/Gateways/Stripe/ValueObjects/CheckoutSession.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 44 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/PaymentGateways/Gateways/Stripe/ValueObjects/CheckoutSession.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/PaymentGateways/Gateways/Stripe/ValueObjects/CheckoutSession.php
- Modified: 2022-02-25T01:33:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/PaymentGateways/Gateways/Stripe/ValueObjects/CheckoutSession.php#L10-L20`.

```php
<?php

namespace Give\PaymentGateways\Gateways\Stripe\ValueObjects;

use Give_Stripe_Checkout_Session;

/**
 * @since 2.19.0
 */
class CheckoutSession
{
    /** @var bool|\Stripe\PaymentIntent */
    protected $checkoutSessionObject;

    /**
     * @since 2.19.0
     * @param $paymentIntentArgs
     * @return CheckoutSession
     */
    public function create( $paymentIntentArgs )
    {
        $this->checkoutSessionObject = give( Give_Stripe_Checkout_Session::class )->create( $paymentIntentArgs );
        return $this;
    }

    /**
     * @since 2.19.0
     * @return string
     */
    public function id()
    {
        return $this->checkoutSessionObject->id;
    }

    /**
     * @since 2.19.0
     * @return string
     */
    public function url()
    {
        return $this->checkoutSessionObject->url;
    }
}

```
