As far as I know, Apple prohibits you from taking external source payment ONLY if the payment serves to unlock an in-app feature. For example: You CANNOT do the following:
However, you can make external payments for things that are outside of your app and that will not remove some kind of restriction in your app. For example: Lottery apps take payment from their own gateway. Amazon uses its own payment gateway.