The problem with this is that using Apple Pay would be more expensive and so why would anyone use it?
Also who is to say the developer would charge less? Let's say, for example, a company called ezpay charges $1 per transaction. If an IAP costs $10, they make $7 off the user who buys via Apple, and $9 off the user that buys via ezpay API in the app. They could lower the ezpay price to $8 and still only make $7, but why bother?
Only the tiniest % of HN idealists will pay 30% extra to have it go through Apple.