Ionic 4 gateway payment fee in Apple Store and Google Play

Hello, I have a simple question. I’m wanting that
my Ionic 4 mobile app allows customers to purchase a product through an Amazon, Stripe, etc.: payment gateway. The question is whether I have to pay the Apple Store / Google Play 30% fee for each transaction or if it is only for payments using the iTunes and Google Pay accounts.