Example #1
0
 /**
  * @param string $clientId
  * @param string $keyClapi
  * @param string $ip
  * @throws SoapApiException
  */
 public function auth($clientId, $keyClapi, $ip = null)
 {
     $result = new SoapRequestResult($this->soapClient->auth($clientId, $keyClapi, $ip));
     $this->checkRequestResultSuccess($result);
 }
Example #2
0
    var $cc_status = null;
    var $cc_status_infos = null;
    var $cc_creation = null;
    var $cc_lastupdate = null;
    var $cc_track_1 = null;
    var $cc_track_2 = null;
    var $cc_track_3 = null;
}
try {
    ini_set('soap.wsdl_cache_enabled', 0);
    $soap = new SoapClient("https://merchant.paytoo.info/api/merchant/?wsdl", array("classmap" => array("PaytooAccountType" => "PaytooAccountType", "PaytooCreditCardType" => "PaytooCreditCardType")));
    var_dump(array("classmap" => array("PaytooAccountType" => "PaytooAccountType", "PaytooCreditCardType" => "PaytooCreditCardType")));
    $merchant_id = '66395537';
    $api_password = '******';
    //"Authentification
    $response = $soap->auth($merchant_id, $api_password);
    if ($response->status == 'OK') {
        echo "Connected\n";
        $CreditCard = new PaytooCreditCardType();
        $CreditCard->cc_type = "VISA";
        //"mandatory
        $CreditCard->cc_holder_name = "DEMO USER";
        //"mandatory
        $CreditCard->cc_number = "4444333322221111";
        //"mandatory
        $CreditCard->cc_cvv = "123";
        //"mandatory
        $CreditCard->cc_month = "12";
        //"mandatory
        $CreditCard->cc_year = "14";
        //"mandatory