Advertisement
Spidow5

Untitled

Mar 20th, 2025
202
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 = "131";
  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
    14 hours
    # text 0.78 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
Add Comment
Please, Sign In to add comment
Advertisement