Gamepasses purchase errors on the third or forth time

Reproduction Steps

As you can see, perfectly demonstrated in the video how this developer just loss 299 R$ because a player thought their game is broken and the sad part is it’s not even their fault.

How much R$ and how many developers has loss R$ they would have gotten due to this ridiculous error?


Product Purchase Test.rbxl (34.3 KB)

Code
local Players = game.Players
local localPlayer = Players.LocalPlayer

local MarketplaceService = game:GetService("MarketplaceService")

local UI: ScreenGui = script.Parent
local Main_F: Frame = UI.Main_F

local TextButton: TextButtin = script.TextButton

local gamepassIds = {
	3055245,
	20398223,
	20398228,
}

local devproductIds = {
	93689069,
	1192905049,
	1192905050,
}

local function createGamepassButtons()
	for i, gamepassId in ipairs(gamepassIds) do
		
		local gamepassBtn = TextButton:Clone()
		
		gamepassBtn.MouseButton1Down:Connect(function()
			MarketplaceService:PromptGamePassPurchase(localPlayer, gamepassId)
		end)
		
		gamepassBtn.Text = "Gamepass ".. i
		
		gamepassBtn.Parent = Main_F
	end
end

createGamepassButtons()

local function createdevproductButtons()
	for i, devproductId in ipairs(devproductIds) do
		
		local devproductBtn = TextButton:Clone()
		
		devproductBtn.MouseButton1Down:Connect(function()
			MarketplaceService:PromptProductPurchase(localPlayer, devproductId)
		end)
		
		devproductBtn.Text = "Devproduct ".. i
		
		devproductBtn.Parent = Main_F
	end
end

createdevproductButtons()

Expected Behavior
I expect players to purchase gamepasses with no issues

Actual Behavior
Players will receive an error when purchasing a third or forth gamepass

image
image

Issue Area: Engine
Issue Type: Performance
Impact: Critical
Frequency: Constantly
Date First Experienced: 2021-07-01 00:07:00 (+07:00)
Date Last Experienced: 2021-07-28 00:07:00 (+07:00)

8 Likes

Thanks for the report! We’re investigating the issue.

4 Likes

hi @RuizuKun_Dev,

we’ve made some changes on our end, and we additionally plan on updating the messaging so that it’s more clear on how to proceed.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.