# give/4.16.0/src/PaymentGateways/PayPalCommerce/DonationDetailsPage.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.0. 26 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.0/code/src/PaymentGateways/PayPalCommerce/DonationDetailsPage.php
- Raw: https://pluginprobe.com/plugins/give/4.16.0/raw/src/PaymentGateways/PayPalCommerce/DonationDetailsPage.php
- Modified: 2021-11-23T23:55:18+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.0/code/src/PaymentGateways/PayPalCommerce/DonationDetailsPage.php#L10-L20`.

```php
<?php

namespace Give\PaymentGateways\PayPalCommerce;

class DonationDetailsPage
{
    /**
     * Return PayPal Commerce payment details page url.
     *
     * @since 2.9.0
     *
     * @param string $transactionId donation transaction id.
     *
     * @return string
     */
    public function getPayPalPaymentUrl($transactionId)
    {
        return sprintf(
            '<a href="%1$sactivity/payment/%2$s" title="%3$s" target="_blank">%2$s</a>',
            esc_url(give(PayPalClient::class)->getHomePageUrl()),
            esc_attr($transactionId),
            esc_attr(esc_html__('View PayPal Commerce payment', 'give'))
        );
    }
}

```
