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 7 years ago
Edited 7 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.

local MarketplaceService = game:GetService('MarketplaceService')
local devproduct = 52846482 --100 Credits

MarketplaceService.ProcessReceipt = function(receiptInfo)
 for i, player in ipairs(game.Players:GetChildren()) do
  if player.userId == receiptInfo.PlayerId then
   if receiptInfo.ProductId == devproduct then
   player.Credits.Value = player.leaderstats.Cash.Value + 100
   end
  end
 end

 return Enum.ProductPurchaseDecision.PurchaseGranted
end

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 — 7y

1 answer

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

Was this recently uploaded?

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

Ad

Answer this question