original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Charge a returning customer.
  
  @param $authorization
  @param $amount
  @param $email
  @param string $plan
  
  @throws \Exception|mixed|Exceptions\PaystackInvalidTransactionException
  
  @return \Exception|mixed|Exceptions\PaystackInvalidTransactionException
docstring_tokens: Charge a returning customer .