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.
01 | local MarketplaceService = game:GetService( 'MarketplaceService' ) |
02 | local devproduct = 52846482 |
04 | MarketplaceService.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 |
13 | return Enum.ProductPurchaseDecision.PurchaseGranted |
If I check the output in game it says
PurchasePromptScript: onAcceptPurchase() failed because HTTP 0(HTTP 403 (HTTP/1.1 403 Forbidden))