Created
January 30, 2017 07:27
-
-
Save luqmansungkar/d1af533ae71b5a2867c3287f2e4e9b31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = isset($_POST['data']) ? $_POST['data'] : null; | |
$token = isset($_POST['token']) ? $_POST['token'] : null; | |
if($token === 'the_token_you_get_from_big_flip_dashboard'){ | |
$decoded_data = json_decode($data); | |
print_r($decoded_data); | |
//will print: | |
/** | |
* Array | |
* ( | |
* [id] => 617 | |
* [id_user] => 22 | |
* [nominal] => 12300 | |
* [status] => DONE | |
* [timestamp] => 2017-01-27 11:45:25 | |
* [bank_penerima] => bni | |
* [no_rek_tujuan] => 123123 | |
* [nama_tujuan] => - | |
* [bank_pengirim] => cimb | |
* [berita] => | |
* [bukti] => | |
* [time_served] => 2017-01-27 11:47:37 | |
* [id_bundle] => 0 | |
* [id_perusahaan] => 10 | |
* [kota] => | |
* ) | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment