You can store a unique ID in the organization settings. You can use this function to determine whether a payment has already been created and prevent the creation of a duplicate payment.
You can do this by activating the Unique ID function, which gives each payment an ID that issues an error message when a new payment with the same purpose is created.
You can also define a regular expression that prevents multiple payments from being created according to the pattern.
It is best to speak to your Customer Success Manager if you are interested in this function.