# give/4.15.0/src/PaymentGateways/Gateways/Stripe/Actions/SaveDonationSummary.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.15.0. 28 lines.

- Page: https://pluginprobe.com/plugins/give/4.15.0/code/src/PaymentGateways/Gateways/Stripe/Actions/SaveDonationSummary.php
- Raw: https://pluginprobe.com/plugins/give/4.15.0/raw/src/PaymentGateways/Gateways/Stripe/Actions/SaveDonationSummary.php
- Modified: 2022-06-17T00:03:36+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.15.0/code/src/PaymentGateways/Gateways/Stripe/Actions/SaveDonationSummary.php#L10-L20`.

```php
<?php

namespace Give\PaymentGateways\Gateways\Stripe\Actions;

use Give\Donations\Models\Donation;
use Give\Framework\PaymentGateways\DonationSummary;

/**
 * @since 2.19.0
 */
class SaveDonationSummary
{
    /**
     * @since 2.19.0
     */
    public function __invoke(Donation $donation): DonationSummary
    {
        $summary = new DonationSummary($donation);
        give_update_meta(
            $donation->id,
            '_give_stripe_donation_summary',
            $summary->getSummaryWithDonor()
        );

        return $summary;
    }
}

```
