membership with 2nd payment lower if its the same membership else full price

membership with 2nd payment lower if its the same membership else full price.
how to go about doing this.
its more like a discount on second purchase of the same thing if the user has already got the membership