Context: How to get an **order payment** by its ID?

See also:

- How is
`\Magento\Sales\Model\Order\Payment::canFetchTransactionInfo()`

implemented and used? - How is payment method’s
`canCapture()`

used? - How is payment method’s
`canCapturePartial()`

used? - How is a payment method’s
`canRefund()`

used? - How is a payment method’s
`canRefundPartialPerInvoice()`

used? - How is a payment method’s
`canVoid()`

used? - How is a payment method’s
`canUseInternal()`

used? - How is a payment method’s
`canUseCheckout()`

used? - How is a payment method’s
`canEdit()`

used? - How is a payment method’s
`fetchTransactionInfo()`

used? - How is a payment method’s
`isGateway()`

used? - How is a payment method’s
`isOffline()`

used? - How is a payment method’s
`isInitializeNeeded()`

used? - How is a payment method’s
`canUseForCountry()`

used? - How is a payment method’s
`canUseForCurrency()`

used? - How is a payment method’s
`getInfoBlockType()`

used? - How is a payment method’s
`getFormBlockType()`

used? - How is a payment method’s
`getTitle()`

used? - How is a payment method’s
`setStore()`

used? - How is a payment method’s
`getStore()`

used? - How is a payment method’s
`getInfoInstance()`

used? - How is a payment method’s
`setInfoInstance()`

used? - How is a payment method’s
`validate()`

used? - How is a payment method’s
`order()`

used? - How is a payment method’s
`authorize()`

used? - How is a payment method’s
`capture()`

used? - How is a payment method’s
`refund()`

used? - How is a payment method’s
`cancel()`

used? - How is a payment method’s
`void()`

used? - How is a payment method’s
`canReviewPayment()`

used? - How is a payment method’s
`acceptPayment()`

used? - How is a payment method’s
`denyPayment()`

used? - How is a payment method’s
`getConfigData()`

used? - How is a payment method’s
`assignData()`

used? - How is a payment method’s
`isAvailable()`

used? - How is a payment method’s
`initialize()`

used? - How is a payment method’s
`getConfigPaymentAction()`

used?