public function chargeReturningTransaction($authorization, $amount, $email, $plan = '')
    {
        $returningTransaction = ReturningTransaction::make(
            $authorization,
            $amount,
            $email,
            $plan instanceof Plan ? $plan->get('plan_code') : $plan
        );
        $returningTransaction->setTransactionResource($this->getTransactionResource());

        $transaction = $returningTransaction->charge();

        if ($transaction instanceof \Exception) {
            throw $transaction;
        }

        return $transaction;
    }
public function chargeReturningTransaction($authorization, $amount, $email, $plan = '')
    {
        $returningTransaction = ReturningTransaction::make(
            $authorization,
            $amount,
            $email,
            $plan instanceof Plan ? $plan->get('plan_code') : $plan
        );
        $returningTransaction->setTransactionResource($this->getTransactionResource());

        $transaction = $returningTransaction->charge();

        if ($transaction instanceof \Exception) {
            throw $transaction;
        }

        return $transaction;
    }
public function chargeReturningTransaction ( $ authorization , $ amount , $ email , $ plan = '' ) { $ returningTransaction = ReturningTransaction :: make ( $ authorization , $ amount , $ email , $ plan instanceof Plan ? $ plan -> get ( 'plan_code' ) : $ plan ) ; $ returningTransaction -> setTransactionResource ( $ this -> getTransactionResource ( ) ) ; $ transaction = $ returningTransaction -> charge ( ) ; if ( $ transaction instanceof \ Exception ) { throw $ transaction ; } return $ transaction ; }
Charge a returning customer.

@param $authorization
@param $amount
@param $email
@param string $plan

@throws \Exception|mixed|Exceptions\PaystackInvalidTransactionException

@return \Exception|mixed|Exceptions\PaystackInvalidTransactionException
Charge a returning customer .