How to verify purchase using Purchase Code using new API

You can’t do this, you must provide your full source code and compiled app without any purchase verification. They’re working on a help article to explain this, but in the meantime you can look at this rejection message.