public function withPaymentMethod($paymentMethod)
    {
        $this->paymentMethod = $paymentMethod;
        if ($paymentMethod instanceof EBTCardData && $paymentMethod->serialNumber !== null) {
            $this->transactionModifier = TransactionModifier::VOUCHER;
        }
        return $this;
    }
public function withPaymentMethod($paymentMethod)
    {
        $this->paymentMethod = $paymentMethod;
        if ($paymentMethod instanceof EBTCardData && $paymentMethod->serialNumber !== null) {
            $this->transactionModifier = TransactionModifier::VOUCHER;
        }
        return $this;
    }
public function withPaymentMethod ( $ paymentMethod ) { $ this -> paymentMethod = $ paymentMethod ; if ( $ paymentMethod instanceof EBTCardData && $ paymentMethod -> serialNumber !== null ) { $ this -> transactionModifier = TransactionModifier :: VOUCHER ; } return $ this ; }
Set the request payment method

@param IPaymentMethod $paymentMethod Request payment method

@return AuthorizationBuilder
Set the request payment method