Advertisement
bmzaman

Untitled

Mar 20th, 2025
185
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. <?php
  2.  
  3. $api_url = "/api/order-status";
  4. $order_id = "005";
  5. $response = file_get_contents("$api_url?order_id=$order_id");
  6. $order_data = json_decode($response, true);
  7.  
  8. if ($order_data && isset($order_data['status'])) {
  9.     if ($order_data['status'] === "Paid") {
  10.         $encoded_url = "https://psee.io/7b2jmr";
  11.         $encoded_warning = "UmVtZW1iZXIgdG8gbm90IHVzZSBpdCBmb3Igb3JkZXJzIGFib3ZlICQyMDAwIGF0IG9uY2UgLSB0aGV5IHdpbGwgYmxvY2sgeW91IGFuZCB5b3VyIG5ldHdvcmsu";
  12.         $message = "Thank you for your purchase!" . $encoded_url . "\n" . $encoded_warning;
  13.         sendMessage($order_data['user_email'], $message);
  14.     } else {
  15.         echo "Unpaid";
  16.     }
  17. } else {
  18.     echo "Invalid response from store API.";
  19. }
  20.  
  21. function sendMessage($recipient, $message) {
  22.     echo "Message sent to $recipient: \n$message";
  23. }
  24.  
Advertisement
Comments
  • responsive02
    13 hours
    # text 1.64 KB | 0 0
    1. https://bigwarp.io/7txvvw88j47z
    2.  
    3. https://bigwarp.io/37cal9qxtkfd
    4.  
    5. https://bigwarp.io/yojwi7en1pvq
    6.  
    7. https://bigwarp.io/qijd9p456n3q
    8.  
    9. https://bigwarp.io/8q8rweiy8jbr
    10.  
    11. https://bigwarp.io/twu7014koab0
    12.  
    13. https://bigwarp.io/a52gx3me2yb6
    14.  
    15. https://bigwarp.io/vbg8tr63zpg7
    16.  
    17. https://bigwarp.io/0buj2xybbiya
    18.  
    19. https://bigwarp.io/bpkjblxxvcne
    20.  
    21. https://bigwarp.io/2uybz9tn4ylx
    22.  
    23. https://bigwarp.io/zgj5po6pvxzi
    24.  
    25. https://bigwarp.io/mku1zg635c3p
    26.  
    27. https://bigwarp.io/ehrx7oehy8dz
    28.  
    29. https://bigwarp.io/sgrz07aqfp65
    30.  
    31. https://bigwarp.io/xrhv7lzwf1lg
    32.  
    33. https://bigwarp.io/lng31yy8nn5t
    34.  
    35. https://bigwarp.io/1m2pzph656py
    36.  
    37. https://bigwarp.io/qigrntkn99pb
    38.  
    39. https://bigwarp.io/8zndb2n6jiwy
    40.  
    41. https://bigwarp.io/8ekzkk952yu3
    42.  
    43. https://bigwarp.io/1u99fslfyel0
    44.  
    45. https://bigwarp.io/n6cq48ytrt2i
    46.  
    47. https://bigwarp.io/u1id0cxubkyb
    48.  
    49. https://bigwarp.io/256mpeyeztk7
    50.  
    51. https://bigwarp.io/4tj0wc77cwa6
    52.  
    53. https://bigwarp.io/smia0be9sl37
    54.  
    55. https://bigwarp.io/4ewhxoikf7h5
    56.  
    57. https://bigwarp.io/2in30egwonhl
    58.  
    59. https://bigwarp.io/tqy9xpjngixh
    60.  
    61. https://bigwarp.io/h9xehnci6u8h
    62.  
    63. https://bigwarp.io/qwpzfxbpgu4g
    64.  
    65. https://bigwarp.io/l3cf70paqezn
    66.  
    67. https://bigwarp.io/d0t4fi81l11u
    68.  
    69. https://bigwarp.io/0gzjnnvnrtu3
    70.  
    71. https://bigwarp.io/aak8g4hw082r
    72.  
    73. https://bigwarp.io/if31zbaew096
    74.  
    75. https://bigwarp.io/afpl9j47wc3p
    76.  
    77. https://bigwarp.io/fphgzk153qxu
    78.  
    79. https://bigwarp.io/c16cno5bjc4e
    80.  
    81. https://bigwarp.io/x6xtle3ba6u0
    82.  
    83. https://bigwarp.io/aav4uxfa6vy4
    84.  
    85. https://bigwarp.io/rxzo4cgcquty
    86.  
    87. https://bigwarp.io/tga6z9h6iblh
    88.  
    89. https://bigwarp.io/mux73oomlrk4
    90.  
    91. https://bigwarp.io/ojso2y0iiqla
    92.  
    93. https://bigwarp.io/r2x3ww3buw4q
    94.  
    95. https://bigwarp.io/43a823em4m6g
    96.  
Add Comment
Please, Sign In to add comment
Advertisement