Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/inventory.corals.io/Corals/modules/Payment/Cheque/Exception/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/inventory.corals.io/Corals/modules/Payment/Cheque/Exception/ChequeWebhookFailed.php
<?php

namespace Corals\Modules\Payment\Cheque\Exception;

use Corals\Modules\Payment\Common\Exception\WebhookFailed;
use Corals\Modules\Payment\Common\Models\WebhookCall;

class ChequeWebhookFailed extends WebhookFailed
{
    public static function missingSignature()
    {
        return new static(trans('Cheque::exception.request_did_not_contain'));
    }

    public static function invalidSignature($signature)
    {
        return new static(trans('Cheque::exception.the_signature_found_header_name', ['name' => $signature]));
    }

    public static function signingSecretNotSet()
    {
        return new static(trans('Cheque::exception.cheque_sign_secret_not_set'));
    }

    public static function invalidCashPayload(WebhookCall $webhookCall)
    {
        return new static(trans('Cheque::exception.invalid_cheque_payload', ['arg' => $webhookCall->id]));
    }

    public static function invalidCashInvoice(WebhookCall $webhookCall)
    {
        return new static(trans('Cheque::exception.invalid_cheque_invoice_code', ['arg' => $webhookCall->id]));
    }

    public static function invalidCashSubscription(WebhookCall $webhookCall)
    {
        return new static(trans('Cheque::exception.invalid_cheque_subscription', ['arg' => $webhookCall->id]));
    }

    public static function invalidCashCustomer(WebhookCall $webhookCall)
    {
        return new static(trans('Cheque::exception.invalid_cheque_customer', ['arg' => $webhookCall->id]));
    }
}

Spamworldpro Mini