app\models\AccountGateway::getWebhookUrl PHP Method

getWebhookUrl() public method

public getWebhookUrl ( ) : string
return string
    public function getWebhookUrl()
    {
        $account = $this->account ? $this->account : Account::find($this->account_id);
        return \URL::to(env('WEBHOOK_PREFIX', '') . 'payment_hook/' . $account->account_key . '/' . $this->gateway_id . env('WEBHOOK_SUFFIX', ''));
    }