code: def new_payment_query_listener(sender, order=None, payment=None, **kwargs):
      
      payment.amount = order.total
      payment.currency = order.currency
  
      logger.debug("new_payment_query_listener, amount=%s, currency=%s",
                   payment.amount, payment.currency)
docs: Here we fill only two obligatory fields of payment, and leave signal handler