code: def get_payment_transaction_by_id(cls, payment_transaction_id, **kwargs):
          
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async'):
              return cls._get_payment_transaction_by_id_with_http_info(payment_transaction_id, **kwargs)
          else:
              (data) = cls._get_payment_transaction_by_id_with_http_info(payment_transaction_id, **kwargs)
              return data
docs: Find PaymentTransaction
  
          Return single instance of PaymentTransaction by its ID.
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async=True
          >>> thread = api.get_payment_transaction_by_id(payment_transaction_id, async=True)
          >>> result = thread.get()
  
          :param async bool
          :param str payment_transaction_id: ID of paymentTransaction to return (required)
          :return: PaymentTransaction
                   If the method is called asynchronously,
                   returns the request thread.