So I think I figured it out.
Your first app is using the transaction receipt: SKPaymentTransaction.TransactionReceipt.
The second app is using the AppStoreReceiptUrl: NSBundle.MainBundle.AppStoreReceiptUrl.
This second one is the correct one to use I think according to the documentation
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect API
Tags: