Converting a paid app to in app purchase

Following up this discussion on the Apple Developer Forum…
https://developer.apple.com/forums/thread/128738

Is there a JUCE method to check the receipt of a purchased App so I can convert the paid App to a freemium App and restore the purchase for customers of the original paid App?