HEX
Server: Apache/2
System: Linux aws3 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
User: hucscom (1018)
PHP: 8.1.32
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/hucscom/public_html/wp-content/plugins/payout-payment-gateway/lib/Payout/Refund.php
<?php

namespace Payout;

use Exception;

class Refund
{
    public function create($data)
    {
        if (!is_array($data)) {
            throw new Exception('Payout error: Wrong checkout parameters.');
        }

        $refund_required = array(
            'checkout_id',
            'payout_id',
            'iban',
            'statement_descriptor'
        );

        foreach ($refund_required as $required_attribute) {
            if (!key_exists($required_attribute, $data)) {
                throw new Exception("Payout error: Missing required parameter \"$required_attribute\".");
            }
        }

        return $data;
    }
}