Making numerical StoreKit transaction IDs in Xcode work with app store server notifications

Hi,

I have a setup using App Store Server notifications, which has worked fine for a while now. However, I've never been able to successfully verify a purchase via Xcode, only via TestFlight.

The reason for this is that the StoreKit transactions have numerical IDs (e.g. starting from 0, incrementing one-by-one), instead of UUIDs like in TestFlight/production.

This means that often the backend will detect an existing transaction with the same ID and not complete the purchase.

What are we meant to do here? If I send a custom ID to make it unique the backend won't accept this - I can ask them to change this for our dev environment but it's not ideal.

What I'm after is a way to use UUIDs for transaction IDs when running via Xcode.

Thanks

Making numerical StoreKit transaction IDs in Xcode work with app store server notifications
 
 
Q