Example #1
0
 /**
  * Registers a new token with myGate
  */
 public static function fCreateTokenCC($connection)
 {
     // Soap call
     $client = new \SoapClient($connection->urls['service']);
     // Result
     $request = $client->fCreateTokenCC($connection->get_config('merchant_id'), $connection->get_config('app_id'), $connection->card->token, $connection->card->cc_name, $connection->card->pan, $connection->card->exp_month, $connection->card->exp_year);
     // Process result and show errors
     $result = \CodeChap\Mygate\Helpers\Terminal::process_results($request);
     // Return it
     return true;
 }