Send values with a developer product purchase

Hello! I am currently making a system in which, if the player does not have the amount of XP needed for a weapon, they can buy it instead using a developer product. Now, I wanted the same developer product for all weapons so as to not clutter my developer products with too many of them. So, I wanted to know, is there a way to send a “value” of some sort with a developer product purchase? Let me explain further. If I were to buy the gun “AK47”, and then run some code in the server where it checks if the purchase ended properly (using recieptinfo), how would the server know if that purchase was made for the AK47 or if it was for an SMG? In the receipt info, only a few values are given, which are:

  • The player who did the purchase
  • if the purchase was successful
  • what developer product was purchased.

Like I said before, I wanted one developer product for all of the weapons, so either way, the same product will be purchased and the server will have no way to tell which weapon it was for. My question is, when I do markeptplaceservice:PromptProductPurchase, is it possible to supply an extra variable with it just like what could be done with remote events? This way, I could supply a string value that tells what weapon was bought. If this isn’t possible, does anyone have any other proposed solutions? Any help would be appreciated! Thank you!

1 Like

I doubt this is possible as you will need to wait for the receipt back from Roblox to say the purchase was successful and any additional variables you sent during PromptProductPurchase won’t be returned. I think. Possibly. Ish.

3 Likes