How to replay events based on aggregateIdentifier

I am trying to wrote replay events , my main concern is i am trying to replay event based on particular paymentId(aggregateIdentifier) , how to do that? i saw we can replay based on processing group but if i want to replay based on one particular payment ID , how do i accomplish it?
Thanks