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

This gamepass fails to confirm and I don't know why?

Asked by 8 years ago
Edited 8 years ago

Whenever a player tries to buy the credits, the buying gui or the prompt(whatever you wanna call it) it gets stuck on the loading screen and then nothing happens. But in testing mode, it works well. I think this script is the problem.

01local MarketplaceService = game:GetService('MarketplaceService')
02local devproduct = 52846482 --100 Credits
03 
04MarketplaceService.ProcessReceipt = function(receiptInfo)
05 for i, player in ipairs(game.Players:GetChildren()) do
06  if player.userId == receiptInfo.PlayerId then
07   if receiptInfo.ProductId == devproduct then
08   player.Credits.Value = player.leaderstats.Cash.Value + 100
09   end
10  end
11 end
12 
13 return Enum.ProductPurchaseDecision.PurchaseGranted
14end

If I check the output in game it says PurchasePromptScript: onAcceptPurchase() failed because HTTP 0(HTTP 403 (HTTP/1.1 403 Forbidden))

0
What script do you use to show the purchase? xAtom_ik 574 — 8y

1 answer

Log in to vote
0
Answered by
waifuSZN 123
8 years ago

Was this recently uploaded?

It may be just ROBLOX hasn't officially approved of it.

Ad

Answer this question