Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

"this item is not currently for sale"??

Asked by 7 years ago
Edited 7 years ago

Hello everyone! I have a little problem, I tried to sell a developer product but when it's prompted to the user, it always says: "this item is not currently for sale. Your account has not been charged".

Here is my code:

local rep = game.ReplicatedStorage

local event = rep.PaymentEvent

event.OnServerEvent:connect(function(player,recipient,kind)
    game:GetService("MarketplaceService"):PromptPurchase(game.Players:FindFirstChild(recipient), 120073404)
    print("event sent")
end)

Thanks for your help and time, Jonas

0
oh ty. now i just need an answer to my question XD marketmanager1 52 — 7y
0
Can you edit your question with to include the code block. User#5423 17 — 7y
0
ok marketmanager1 52 — 7y
View all comments (3 more)
0
there you go :) marketmanager1 52 — 7y
0
Have you set up the developer product correctly OMG_Gaming404 73 — 7y
0
mhm marketmanager1 52 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

Aha. looks like i had to do this client sided. Thanks for the help guys!

Ad

Answer this question