Adding In App Payments what a struggle

I have been trying to implement In App Payments for almost a week now, constantly working few hours here and there just to find another bug that needs to be taken care of. The Problem with implementing In App Payments is, that is in't easily tested.

Using the Simulator you can't be Absolutely sure that the process and all parts you have made will work out as expected on a real device. Testing on the Simulator will also only work with enabling a StoreKitTest Configuration. So you are forced to use a real device and do all the testing there.

Using a real device comes with its own struggles. You have to be plugged in. And yada yada yada. Anyways I have managed to get it working. At the beginning I skipped the Part of verifying the receipt which is required so that nobody can "scam" the system and get your virtual items for free. I skipped it for the beginning because I have encountered an annoying Error, early on.

I was so happy to get everything working and running that I even created a StackOverflow Question only to Answer It myself. I was searching here and there for this simple answer. Now I got it myself. You can check it out here:

https://stackoverflow.com/questions/76027596/how-to-use-a-simple-php-script-to-verify-ios-in-app-payment-receipt-using-flutte