Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ip_dpedia = "172.105.239.47";
- if( $_SERVER['REMOTE_ADDR'] == $ip_dpedia ){
- $content = $_POST['content'];
- $json = json_decode($content,TRUE);
- $oid = $json['oid'];
- $service = $json['service'];
- $price = $json['price'];
- $status = $json['status'];
- $date = $json['date'];
- $catatan = $json['catatan'];
- }
- //Contoh Respon Callback
- {
- "content" : {
- "oid" : "2006192456",
- "service" : "TSEL Reguler Promo 1.000",
- "price" : "1350",
- "status" : "sukses",
- "date" : "2019-06-09 12:12:12",
- "catatan" : "51003515164003"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement