add gs
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
local PurchaseError = require(script.Parent.Parent.PurchaseError)
|
||||
local Promise = require(script.Parent.Parent.Promise)
|
||||
|
||||
local MAX_ROBUX = 2147483647
|
||||
|
||||
local function getAccountInfo(network, externalSettings)
|
||||
return network.getAccountInfo()
|
||||
:andThen(function(result)
|
||||
--[[
|
||||
In studio, we falsely report that users have the maximum amount
|
||||
of robux, so that they can always test the normal purchase flow
|
||||
]]
|
||||
if externalSettings.isStudio() then
|
||||
result.RobuxBalance = MAX_ROBUX
|
||||
end
|
||||
|
||||
return Promise.resolve(result)
|
||||
end)
|
||||
:catch(function(failure)
|
||||
return Promise.reject(PurchaseError.UnknownFailure)
|
||||
end)
|
||||
end
|
||||
|
||||
return getAccountInfo
|
||||
Reference in New Issue
Block a user