Creates an XDR Operation object that represents this
        :class:`Payment`.

def to_xdr_object(self):
        """Creates an XDR Operation object that represents this
        :class:`Payment`.

        """
        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()