예제 #1
0
      ,'billingSameAsShipping' =>  'yes' 
      ,'billing_fname' =>  '' 
      ,'billing_lname' =>  '' 
      ,'billing_address1' =>  '' 
      ,'billing_address2' =>  '' 
      ,'billing_city' =>  '' 
      ,'billing_state_id' =>  '' 
      ,'billing_zip' =>  '' 
      ,'cc_number' =>  $test_cc_number
      ,'fields_expmonth' =>  '03' 
      ,'fields_expyear' =>  '16' 
      ,'cc_expires' =>  '0316' 
      ,'cc_cvv' =>  '123'
      ,'campaign_id' =>  $test_campaign_id
      ,'AFID' =>  '40001' 
      ,'c1' =>  '123' 
      ,'c2' =>  '321' 
      ,'SID' =>  '3215213' 
      ,'user_ip' =>  '127.0.0.1' );*/
    //var_dump($_POST);
}
// END TESTING CODE ===========================
echo '<pre>';
print_r($_POST);
echo '</pre>';
//exit;
$ws = new WS();
$ws->isValid($server, $_POST, $_COOKIE);
exit($ws->process());
// this should never be reached
exit(json_encode(array('status' => 0, 'msg' => 'exitFromApi')));