12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- require_once 'api.php';
- $appid = '2147483647';
- $appsecret = '160130736b1ac0d54ed7abe51e44840b';
- $my_plugin_id = 'my-plugins-id';
- $data = $_POST;
- foreach ($data as $k=>$v){
- $data[$k] = stripslashes($v);
- }
- if(!isset($data['hash'])||!isset($data['trade_order_id'])){
- echo 'failed';exit;
- }
- if(isset($data['plugins'])&&$data['plugins']!=$my_plugin_id){
- echo 'failed';exit;
- }
- $appkey =$appsecret;
- $hash =XH_Payment_Api::generate_xh_hash($data,$appkey);
- if($data['hash']!=$hash){
-
- echo 'failed';exit;
- }
- $trade_order_id =$data['trade_order_id'];
- if($data['status']=='OD'){
-
-
-
-
-
-
-
-
-
- }else{
-
- }
- echo 'success';
- exit;
- ?>
|