I tried making it like this but i got error
Make an In-App Purchase v2 : Usage of ‘Make an In-App Purchase v2’ has been deprecated. Please use ‘Start an In-App Purchase’ and remember to pass the output receipts to ‘Finalize In-App Purchase Transaction’ after being validated and processed
and if i dont use make an in app purchase the game crashes when i press the button