public function capture()
    {
        $storage = new Storage();
        $config = new Config($storage->getAccount());

        if ($config->getDriver() == 'database') {
            return PayuPayment::find($storage->getPayment());
        }

        return new PayuPayment($storage->getPayment());
    }
public function capture()
    {
        $storage = new Storage();
        $config = new Config($storage->getAccount());

        if ($config->getDriver() == 'database') {
            return PayuPayment::find($storage->getPayment());
        }

        return new PayuPayment($storage->getPayment());
    }
public function capture ( ) { $ storage = new Storage ( ) ; $ config = new Config ( $ storage -> getAccount ( ) ) ; if ( $ config -> getDriver ( ) == 'database' ) { return PayuPayment :: find ( $ storage -> getPayment ( ) ) ; } return new PayuPayment ( $ storage -> getPayment ( ) ) ; }
Receive Payment and Return Payment Model.

@return PayuPayment
Receive Payment and Return Payment Model .