QRPayment.php
public function setPaymentType($paymentType)
    {
        if (self::PAYMENT_PEER_TO_PEER !== $paymentType) {
            throw new RuntimeException(Tools::poorManTranslate('fts-shared', 'Invalid payment type.'));
        }

        return $this->add('PT', $paymentType);
    }
public function setPaymentType($paymentType)
    {
        if (self::PAYMENT_PEER_TO_PEER !== $paymentType) {
            throw new RuntimeException(Tools::poorManTranslate('fts-shared', 'Invalid payment type.'));
        }

        return $this->add('PT', $paymentType);
    }
Set payment type

@param string $paymentType Payment type - see constants PAYMENT_*
@return QRPayment
@throws RuntimeException