Returns a payment method
@param string $method_id
@return array
358742
public function get($method_id)
    {
        $methods = $this->getList();
        return empty($methods[$method_id]) ? array() : $methods[$method_id];
    }
633593
public OvhPaymentMethod payment_thod_paymentMethodId_GET(Long paymentMethodId) throws IOException {
		String qPath = "/me/payment/method/{paymentMethodId}";
		StringBuilder sb = path(qPath, paymentMethodId);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhPaymentMethod.class);
	}
792985
function getPayment(id) {
    var callback = preConditions.getCallback(arguments[arguments.length - 1]);

    showWarning();

    return ipnModule.getPayment(id, callback);
  }
1071105
protected function getDescriptionDoc(MethodDoc $method) : array
    {
        $docDescription = [];
        if (null !== $method->getDescription()) {
            $docDescription['description'] = $method->getDescription();
        }

        $responseDescription = $this->getResponseDescription($method);
        if (null !== $responseDescription) {
            $hasInitialDescription = isset($docDescription['description'])
                && strlen($docDescription['description']) > 0
            ;
            $docDescription['description'] = sprintf(
                '%s%s%s',
                ($hasInitialDescription ? $docDescription['description'] : ''),
                ($hasInitialDescription ? "\n" : ''),
                $responseDescription
            );
        }

        return $docDescription;
    }
1003119
def get_payment(payment_id, options = {})
      request_params = {}
      response_xml = http_get(client, "#{@xero_url}/Payments/#{payment_id}", request_params)
      parse_response(response_xml, {:request_params => request_params}, {:request_signature => 'GET/payments'})
    end
410458
public function getMethodReturnTypeLocation(
        $method_id,
        CodeLocation &$defined_location = null
    ) {
        return $this->methods->getMethodReturnTypeLocation($method_id, $defined_location);
    }
1079513
public function getPaymentMethodTemplate($template, array $order, $payment_model)
    {
        if (empty($order['payment'])) {
            return '';
        }

        $method = $payment_model->get($order['payment']);
        return $this->getMethodTemplate($template, $order, $method);
    }
744258
protected static function deletePaymentTokenByIdAsyncWithHttpInfo($payment_token_id) 
    {
        $returnType = '';  
        $request = self::deletePaymentTokenByIdRequest($payment_token_id); 

        return self::getHttpClient()
            ->sendAsync($request, self::createHttpClientOption())
            ->then(
                function ($response) use ($returnType) {
                    return [null, $response->getStatusCode(), $response->getHeaders()];
                },
                function ($exception) {
                    $response = $exception->getResponse();
                    $statusCode = $response->getStatusCode();
                    throw new ApiException(
                        sprintf(
                            '[%d] Error connecting to the API (%s)',
                            $statusCode,
                            $exception->getRequest()->getUri()
                        ),
                        $statusCode,
                        $response->getHeaders(),
                        $response->getBody()
                    );
                }
            );
    }
950854
public function load($paymentId)
    {
        $db = $this->getDb();
        $data = $db->getRow('SELECT * FROM `oepaypal_orderpayments` WHERE `oepaypal_paymentid` = ' . $db->quote($paymentId));

        return $data;
    }
195585
public function get($paymentMethod)
    {
        $id = null;
        if ($paymentMethod instanceof HpsPayPlanPaymentMethod) {
            $id = $paymentMethod->paymentMethodKey;
        } else {
            $id = $paymentMethod;
        }
        $result = $this->doRequest(null, array(
            'verb'     => 'GET',
            'endpoint' => 'paymentMethods/'.$id
        ));
        return $this->hydrateObject($result, 'HpsPayPlanPaymentMethod');
    }
842138
public function GetValidPaymentMethodsSelectableByTheUser()
    {
        $oPaymentMethods = clone $this->GetValidPaymentMethods(true);
        $aInvalidMethods = array();
        $oPaymentMethods->GoToStart();
        while ($oPaymentMethod = $oPaymentMethods->Next()) {
            $oHandler = $oPaymentMethod->GetFieldShopPaymentHandler();
            if ($oHandler && $oHandler->isBlockForUserSelection()) {
                $aInvalidMethods[] = MySqlLegacySupport::getInstance()->real_escape_string($oPaymentMethod->id);
            }
        }
        if (count($aInvalidMethods) > 0) {
            $oPaymentMethods->AddFilterString("`shop_payment_method`.`id` NOT IN ('".implode("','", $aInvalidMethods)."')");
        }
        $oPaymentMethods->GoToStart();

        return $oPaymentMethods;
    }
614430
public function getList($paymentId)
    {
        $db = $this->getDb();
        $data = $db->getAll('SELECT * FROM `oepaypal_orderpaymentcomments` WHERE `oepaypal_paymentid` = ' . $db->quote($paymentId) . ' ORDER BY `oepaypal_date` DESC');

        return $data;
    }
574817
public function isVariadic($method_id)
    {
        $declaring_method_id = $this->getDeclaringMethodId($method_id);

        if (!$declaring_method_id) {
            return false;
        }

        $method_id = $declaring_method_id;

        list($fq_class_name, $method_name) = explode('::', $method_id);

        return $this->classlike_storage_provider->get($fq_class_name)->methods[$method_name]->variadic;
    }
662538
public function getPaymentMethod()
    {
        /** @var \Order $order */
        $order = $this->getOrder()->source;
        if (isset($order->module)) {
            return $order->module;
        }
        return parent::getPaymentMethod();
    }
1005270
public AbucoinsPaymentMethod[] getPaymentMethods() throws IOException {
    AbucoinsPaymentMethods paymentMethods =
        abucoinsAuthenticated.getPaymentMethods(
            exchange.getExchangeSpecification().getApiKey(),
            signatureCreator,
            exchange.getExchangeSpecification().getPassword(),
            timestamp());

    if (paymentMethods.getPaymentMethods().length == 1
        && paymentMethods.getPaymentMethods()[0].getMessage() != null)
      throw new ExchangeException(paymentMethods.getPaymentMethods()[0].getMessage());
    return paymentMethods.getPaymentMethods();
  }
1354894
public function getTransactionDetail($transaction_id){
        $url = $this->authenticationService->getServerEndPoint() . Endpoints::VERSION . Endpoints::BASE_WALLET . Endpoints::WALLET_TRANSACTION;
        $url = sprintf($url,$transaction_id);
        $result = $this->authenticationService->getTransport()->fetch($url);

        if($result["code"] == APIResponse::RESPONSE_SUCCESS){
            // Wrap it in a array since maskData takes an Array of Array
            $maskWrapper = array($result['results']);
            $this->maskData($maskWrapper);
            return $maskWrapper[0];
        }else{
            return 0;
        }
    }
528602
def get_payment_method(self, payment_method_id, **params):
        """"""
        response = self._get('v2', 'payment-methods', payment_method_id, params=params)
        return self._make_api_object(response, PaymentMethod)