It's not checking for transaction already in the system.
You should add :
checkCbTransID($validationData['x_ref_payco']); # Checks transaction number isn't already in the database and ends processing if it does
Docs: https://developers.whmcs.com/payment-gateways/callbacks/
It's not checking for transaction already in the system.
You should add :
checkCbTransID($validationData['x_ref_payco']); # Checks transaction number isn't already in the database and ends processing if it doesDocs: https://developers.whmcs.com/payment-gateways/callbacks/