generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Club Houses » Let's Make a Deal
Home Search
 

Re: oh dang the marketplace core scripts

Previous Thread :: Next Thread 
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
28 Jan 2015 03:49 PM
this is what is used when a player spends robux, could it lead to h4x???

-- user has specified they want to buy an item, now try to attempt to buy it for them
function doAcceptPurchase(currencyPreferredByUser)
if currentlyPurchasing then return end
currentlyPurchasing = true

showPurchasing() -- shows a purchasing ui (shows spinner)

local startTime = tick()

-- http call to do the purchase
local response = "none"
local url = nil

-- consumables need to use a different url
if purchasingConsumable then
url = getSecureApiBaseUrl() .. "marketplace/submitpurchase?productId=" .. tostring(currentProductId) ..
"&currencyTypeId=" .. tostring(currencyEnumToInt(currentCurrencyType)) ..
"&expectedUnitPrice=" .. tostring(currentCurrencyAmount) ..
"&placeId=" .. tostring(Game.PlaceId)
local flagExists, flagValue = pcall(function() settings():GetFFlag("AddRequestIdToDeveloperProductPurchases") end)
if flagExists and flagValue then
local h = game:GetService("HttpService")
url = url .. "&requestId=" .. h:UrlEncode(h:GenerateGUID())
end
else
url = getSecureApiBaseUrl() .. "marketplace/purchase?productId=" .. tostring(currentProductId) ..
"&currencyTypeId=" .. tostring(currencyEnumToInt(currentCurrencyType)) ..
"&purchasePrice=" .. tostring(currentCurrencyAmount) ..
"&locationType=Game" .. "&locationId=" .. Game.PlaceId
end

local success, reason = ypcall(function()
response = game:HttpPostAsync(url, "RobloxPurchaseRequest")
end)

-- debug output for us (found in the logs from local)
print("doAcceptPurchase success from ypcall is ",success,"reason is",reason)

if (tick() - startTime) < 1 then
wait(1) -- allow the purchasing waiting dialog to at least be readable (otherwise it might flash, looks bad)...
end

-- check to make sure purchase actually happened on the web end
if response == "none" or response == nil or response == '' then
print("did not get a proper response from web on purchase of",currentAssetId,currentProductId)
purchaseFailed()
return
end

-- parse our response, decide how to react
response = getRbxUtility().DecodeJSON(response)

if response then
if response["success"] == false then
if response["status"] ~= "AlreadyOwned" then
print("web return response of fail on purchase of",currentAssetId,currentProductId)
if (response["status"] == "EconomyDisabled") then
purchaseFailed("inGamePurchasesDisabled")
else
purchaseFailed()
end
return
end
end
else
print("web return response of non parsable JSON on purchase of",currentAssetId)
purchaseFailed()
return
end

-- check to see if this item was bought, and if we want to equip it (also need to make sure the asset type was gear)
if currentEquipOnPurchase and success and currentAssetId and tonumber(currentProductInfo["AssetTypeId"]) == 19 then
local tool = getToolAssetID(tonumber(currentAssetId))
if tool then
tool.Parent = game.Players.LocalPlayer.Backpack
end
end

if purchasingConsumable then
if not response["receipt"] then
print("tried to buy productId, but no receipt returned. productId was",currentProductId)
purchaseFailed()
return
end
Game:GetService("MarketplaceService"):SignalClientPurchaseSuccess( tostring(response["receipt"]), game.Players.LocalPlayer.userId, currentProductId )
else
userPurchaseActionsEnded(success)
end
end
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
28 Jan 2015 03:50 PM
foreverdev is life
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
28 Jan 2015 03:50 PM
yeet
Report Abuse
BREN140 is not online. BREN140
Joined: 30 Jan 2010
Total Posts: 7499
28 Jan 2015 03:51 PM
[ Content Deleted ]
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
28 Jan 2015 03:51 PM
[ Content Deleted ]
Report Abuse
BREN140 is not online. BREN140
Joined: 30 Jan 2010
Total Posts: 7499
29 Jan 2015 05:36 AM
no


✞Add 23.5k+ Post✞ MrPutNameHere/Vextre ✔ JoJoWorld ✔ BDK ✔
Report Abuse
Widths is not online. Widths
Joined: 12 Aug 2014
Total Posts: 41286
29 Jan 2015 05:44 AM
pretty sure you can override having to press y/n on the purchase with this....

how u even find dis

-iJava
Report Abuse
andrew900701 is not online. andrew900701
Joined: 15 Jul 2008
Total Posts: 21519
29 Jan 2015 05:49 AM
wow lol
Report Abuse
BREN140 is not online. BREN140
Joined: 30 Jan 2010
Total Posts: 7499
03 Feb 2015 04:54 PM



✞Add 23.5k+ Post✞ MrPutNameHere/Vextre ✔ Future Roblox Clothing Designer ✔ BDK ✔
Report Abuse
Voyaging is not online. Voyaging
Joined: 24 Jan 2013
Total Posts: 4857
03 Feb 2015 04:55 PM
or u can use inspect elemttn and get free items!
Report Abuse
doings is not online. doings
Joined: 20 Aug 2014
Total Posts: 19095
03 Feb 2015 04:56 PM
Your a savior

This might lead to hax

;)
Report Abuse
Acmic is not online. Acmic
Joined: 04 Oct 2008
Total Posts: 47963
03 Feb 2015 05:12 PM
#Spybot#Save

~Gen 1 R$, 15 Tix
Report Abuse
WebGL3D is online. WebGL3D
Joined: 04 Sep 2013
Total Posts: 28311
03 Feb 2015 07:25 PM
@doings good luck with that, I spent days to solve this and get it working outside of a place. And it's a lot harder than it looks to duplicate :P


~ 1Topcop ~ WebGL3D ~ Java3D ~ Data3D ~ Purple Squid >
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
03 Feb 2015 07:26 PM
how do you get this
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
03 Feb 2015 07:27 PM
its actually not very hard to get
Report Abuse
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
03 Feb 2015 07:29 PM
i didnt ask how hard it was

how'd u get
Report Abuse
PvN is not online. PvN
Joined: 10 Apr 2010
Total Posts: 22145
03 Feb 2015 07:30 PM
no cuz da blerbityblerp and da wobblywop do da jiggyjig
ye
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
03 Feb 2015 07:37 PM
[ Content Deleted ]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Let's Make a Deal
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image