/**
  * Register Website on Paysite Cash
  * @param array $merchant_data
  * @return integer
  */
 function wps_paysite_cash_register_website($merchant_data)
 {
     $website_id = '';
     $site_data = array('name' => get_bloginfo('name'), 'url' => site_url(), 'customer_contact_email' => $merchant_data['email'], 'is_selling_goods' => false, 'referrer_url' => '', 'after_payment_url' => get_permalink(get_option('wpshop_payment_return_page_id')), 'cancelled_payment_url' => get_permalink(get_option('wpshop_payment_return_nok_page_id')), 'backoffice_url' => site_url() . '/?paymentListener=paysite_cash', 'backoffice_url_username' => '', 'backoffice_url_password' => '', 'multiple_payments_alert_limit' => '1', 'accept_payment_from_abroad' => true, 'accept_free_emails' => true, 'accept_multiple_subscriptions' => true, 'revalidate_after_months' => 1, 'validate_by_sms' => false, 'validate_by_phone' => false, 'revalidate_after_amount' => 1000, 'request_activation' => false);
     try {
         $client = new SoapClient(null, array('location' => 'http://billing.paysite-cash.biz/service/site_creation_service.php', 'uri' => 'http://www.paysite-cash.com'));
         $service = array('apikey' => '25ef148b36a9087e0200fb561f28662d', 'merchant_id' => $merchant_data['merchant_id']);
         try {
             $website_id = $client->createSiteByReseller($service['apikey'], $service['merchant_id'], $site_data);
         } catch (SoapFault $e) {
             // handle error
         }
     } catch (Exception $e) {
         $response = __('Soap functions are not enabled on your server, Please visit Paysite Cash website to create your account', 'wps_paysite_cash');
     }
     return $website_id;
 }