Example #1
0
 /**
  * Checks that a token is associated with credt card detils
  */
 public static function fGetToken($connection)
 {
     // Soap call
     $client = new \SoapClient($connection->urls['service']);
     // Result
     $request = $client->fGetToken($connection->get_config('merchant_id'), $connection->get_config('app_id'), $connection->card->token);
     // Process result and show errors
     $result = \CodeChap\Mygate\Helpers\Terminal::process_results($request, true);
     // Record found
     if ($result) {
         return true;
     }
     // Record not found
     return false;
 }