It turns out to be fraud, you have made a button to restore the purchase but put another action on it.
When publishing goods in App store you attach a screenshot with the button to restore purchases and the moderator necessarily clicks on it, and if he does not see the necessary action in the console, he will reject your application.
You don't have to reinvent the wheel. Just put a restore purchases action on the button and if you have one-time purchases apple will restore them.