Developer product not going trough every time

Im currently working on a store, and sometimes the developer products when purchased go trough, eg let the server know, other times nothing happens?

Second image is of the prompt puchase, and first is to detect.
Any help is appreciated.

PLACE

3 Likes

Fixed the issue, turns out you have to have every purchase manager script in one script.

It’s right on the article for ProcessReceipt. It’s a callback that you have to define. By making multiple purchase scripts, you’re overwriting what was previously defined to it. It’s not that every product manager has to be in a single script - you can only have one function to serve as ProcessReceipt which all other handlers are participating in. You can only define ProcessReceipt once.

1 Like

If you want to separate each bit of code, use modules as an alternative.