service/PaymentMethodService.php
public static function get(Context $context, $number)
    {
        CheckUtils::paramNotEmpty($number, Constants::NUMBER);

        $response = NetLicensingService::getInstance()
            ->get($context, Constants::PAYMENT_METHOD_ENDPOINT_PATH . '/' . $number);

        $paymentMethod = null;

        if (!empty($response->items->item[0])) {
            $paymentMethod = ItemToPaymentMethodConverter::convert($response->items->item[0]);
            $paymentMethod->exists = true;
        }

        return $paymentMethod;
    }
public static function get(Context $context, $number)
    {
        CheckUtils::paramNotEmpty($number, Constants::NUMBER);

        $response = NetLicensingService::getInstance()
            ->get($context, Constants::PAYMENT_METHOD_ENDPOINT_PATH . '/' . $number);

        $paymentMethod = null;

        if (!empty($response->items->item[0])) {
            $paymentMethod = ItemToPaymentMethodConverter::convert($response->items->item[0]);
            $paymentMethod->exists = true;
        }

        return $paymentMethod;
    }
Gets payment method by its number.See NetLicensingAPI for details:
https://www.labs64.de/confluence/display/NLICPUB/Payment+Method+Services#PaymentMethodServices-Getpaymentmethod

determines the vendor on whose behalf the call is performed
@param Context $context

the payment method number
@param $number

return the payment method
@return PaymentMethod|null
@throws MalformedArgumentsException
@throws \ErrorException
@throws RestException