Ionic React and In-App Purchase?

I had trouble in In-App Purchase in Ionic React project…
If any one have proper reference related to this then give me…

You can use cordova-plugin-purchase with Iaptic for receipt validation. This is a cordova plugin, but it will work with Capacitor. Since v13, it has types built in. There isn’t a react-specific example but there is a general example. Basically you set up a bunch of event listeners, which is a little tricky to use with React state but it can be done.

Alternately, you could use RevenueCat’s purchases-capacitor. The advantage is that this is a Capacitor plugin, not a Cordova plugin. But the downside is that RevenueCat takes 1% of your sales as their cut, which is much higher than Iaptic with cordova-plugin-purchase.