Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var productId = "your_product_id"; // replace with your actual product id
- 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",
- "x-csrf-token": Roblox.XsrfToken.getToken()
- }
- })
Advertisement
Comments
-
- Link video: https://youtu.be/CKt0k0YAyxc?si=aTAmSnNcP-41z3T5
-
- edit:
- "let productId = "your_product_id"; // replace with your actual product id
- 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",
- "x-csrf-token": Roblox.XsrfToken.getToken()
- }
- })
- "
-
- sorry error code
-
- What edit code: let to var
Add Comment
Please, Sign In to add comment
Advertisement