title: Getting 301 moved permanently error on woocommerce checkout
body: <p>I am using customize <code>wirecard payment gateway</code> in woocommerce plugin. Currently when i go on checkout page and submit the <code>confirm pay button</code> after filling all information(e.g.-credit card no, card holder name ) the check page is being stuck and not process further. I have checked in firebug for error(response) then its giving <code>301 moved permanently</code> status. 
  My site is ssl secure with https.</p>
  
  <p>Url for test product: <a href="https://example.com/testprod" rel="nofollow">https://example.com/testprod</a></p>
  
  <p>You can fill the <code>dummy billing address</code> and all information (use <code>postal code- GL51 3AA</code>)</p>
  
  <p>dummy payment details: </p>
  
  <pre><code>Creditcard Holder Name   : John Doe
  Creditcard Number        : 4222222222222
  Expiration Date          : Month: 1, Year: 2015
  CCV Code                 : 100
  </code></pre>
  
  <p>I have used the code <code>$processurl = WC_Compat_Wirecard::force_https( add_query_arg('wc-api', 'WC_Gateway_Wirecard_ProcessPayment', home_url( '/' ) ) );</code> 
  for processing ajax url and it is giving
  the output url as <a href="https://example.com/?wc-api=WC_Gateway_Wirecard_ProcessPayment" rel="nofollow">https://example.com/?wc-api=WC_Gateway_Wirecard_ProcessPayment</a>
  but when i inspected process in chrome browser it response is</p>
  
  <p><code>XMLHttpRequest cannot load http://example.com/?wc-api=WC_Gateway_Wirecard_ProcessPayment. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://example.com' is therefore not allowed access.</code> </p>
  
  <p>while my return url is <code>https://example.com/?wc-api=WC_Gateway_Wirecard_ProcessPayment</code></p>
  
  <p>Thanks in advance for any solution/suggestion.</p>
  
  <p><strong>Note: If any more information required please ask.</strong> </p>