# give/4.17.0/src/DonationForms/Actions/GenerateDonationConfirmationReceiptViewRouteUrl.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.17.0. 25 lines.

- Page: https://pluginprobe.com/plugins/give/4.17.0/code/src/DonationForms/Actions/GenerateDonationConfirmationReceiptViewRouteUrl.php
- Raw: https://pluginprobe.com/plugins/give/4.17.0/raw/src/DonationForms/Actions/GenerateDonationConfirmationReceiptViewRouteUrl.php
- Modified: 2023-10-16T17:55:46+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.17.0/code/src/DonationForms/Actions/GenerateDonationConfirmationReceiptViewRouteUrl.php#L10-L20`.

```php
<?php

namespace Give\DonationForms\Actions;


use Give\Framework\Routes\Route;

/**
 * @since 3.0.0
 */
class GenerateDonationConfirmationReceiptViewRouteUrl
{
    /**
     * @since 3.0.0
     */
    public function __invoke(string $receiptId): string
    {
        $args = [
            'receipt-id' => $receiptId
        ];

        return esc_url_raw(Route::url('donation-confirmation-receipt-view', $args));
    }
}

```
