code: def to_xdr_object(self):
          
          asset = self.asset.to_xdr_object()
          destination = account_xdr_object(self.destination)
  
          amount = Operation.to_xdr_amount(self.amount)
  
          payment_op = Xdr.types.PaymentOp(destination, asset, amount)
          self.body.type = Xdr.const.PAYMENT
          self.body.paymentOp = payment_op
          return super(Payment, self).to_xdr_object()
docs: Creates an XDR Operation object that represents this
          :class:`Payment`.