# give/4.16.9/src/Framework/PaymentGateways/Log/PaymentGatewayLog.php

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

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Framework/PaymentGateways/Log/PaymentGatewayLog.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Framework/PaymentGateways/Log/PaymentGatewayLog.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.16.9/code/src/Framework/PaymentGateways/Log/PaymentGatewayLog.php#L10-L20`.

```php
<?php

namespace Give\Framework\PaymentGateways\Log;

use Give\Donations\Models\Donation;
use Give\Log\Log;

/**
 * @since 2.21.0 Remove GatewayPaymentData related code and Update 'source' to payment gateway name
 * @since 2.19.6 remove cardInfo from log
 * @since 2.18.0
 */
class PaymentGatewayLog extends Log
{
    /**
     * @inheritDoc
     */
    public static function __callStatic($name, $arguments)
    {
        $arguments[1]['category'] = 'Payment Gateway';
        $arguments[1]['source'] = 'Payment Gateway';

        if (
            array_key_exists('Donation', $arguments[1]) &&
            $arguments[1]['Donation'] instanceof Donation
        ) {
            $arguments[1]['source'] = $arguments[1]['Donation']->gateway()->getName();
        }

        parent::__callStatic($name, $arguments);
    }
}

```
