<!DOCTYPE html>
<html>
<head>
</head>
<body>

<?php

$sender = $_GET['sender'];//phone num.
  $amount = $_GET['amount'];//credit
  $cuid = $_GET['cuid'];//resource i.e. user
  $payment_id = $_GET['payment_id'];//unique id
  $test = $_GET['test']; // this parameter is present only when the payment is a test payment, it's value is either 'ok' or 'fail'

  //hint: find or create payment by payment_id
  //additional parameters: operator, price, user_share, country

  if(preg_match("/completed/i", $_GET['status'])) {
    // mark payment as successful
  }

  // print out the reply
  
    if($test){
        <p>echo('TEST OK');</p>
    }
    else {
        <p>echo('OK');</p>
    }

    

?>

</body>
</html>