Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // replace PRODUCT_ID with actual product id
- var productID = "actual_product_id_here";
- fetch(`https://economy.roblox.com/v2/user-products/${productID}/purchase`,{
- body: JSON.stringify({"expectedCurrency": 1,"expectedPrice": 1,"expectedSellerId": 1}),
- method: "POST",
- credentials: "include",
- headers: {
- "Content-Type": "application/json",
- // ensure Roblox.XsrfToken.getToken() returns a valid token
- "x-csrf-token": Roblox.XsrfToken.getToken()
- }
- })
- .then(response => response.json())
- .then(data => console.log(data))
- .catch((error) => {
- console.error('Error:', error);
- });
Advertisement
Comments
-
- 👕Layered Clothing👕
- Step-by-Step Guide
- 1.) Press CTRL + SHIFT + J.
- 2.) Insert the script.
- 3.) Replace the "PRODUCT_ID_HERE" with your desired product ID.
- 4.) Press ENTER.
- 5.) Refresh the page. Voila!
-
- Lol
Add Comment
Please, Sign In to add comment
Advertisement