Apple Pay is a wallet that can be used in various places. For a store to accept Apple Pay, the merchant is given a virtual credit card to charge for payment. This costs the merchant the normal credit card processing fee, usually 2.9% + 30 cents.
On iOS, In-app-purchases (IAP) are used inside an app to purchase content. Because it's on Apple's device using Apple's SDK and APIs and hardware, Apple takes a 30% cut of the fee, so you charge $10, Apple takes $3 and gives you $7. Inside of the app, it uses Apple Pay, but because it's in the app, Apple takes 30%.
On iOS, In-app-purchases (IAP) are used inside an app to purchase content. Because it's on Apple's device using Apple's SDK and APIs and hardware, Apple takes a 30% cut of the fee, so you charge $10, Apple takes $3 and gives you $7. Inside of the app, it uses Apple Pay, but because it's in the app, Apple takes 30%.