• Resolved duom

    (@duom)


    Hi

    The plugin don’t seem to work with HTTPS only setup. I had my website’s port 80 closed off for security reason so only https will work. Every time I submitted a credit card payment, I will get a Bad Request error because the redirectURL in class-wc-eway-api.php is forced to use http.

    Line 125

    
    'RedirectUrl'     => str_replace(
      'https:', 'http:', add_query_arg(
        array(
          'wc-api'    => 'WC_Gateway_EWAY',
          'order_id'  => $order_id,
          'order_key' => $order_key,
          'sig_key'   => md5( $order_key . 'WOO' . $order_id ),
        ), home_url( '/' )
      )
    ),
    

    I tried removing the str_replace function so the redirectURL is https instead of http, but I just ended up with a 504 timeout instead.

    Is this a bug? Does the redirectURL has to be http instead of https? Can it work with https ?

    Many Thanks
    – Duo

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @duom ,

    There is a known bug in the extension. I don’t have an estimate for when it will be fixed, but our developers are aware and will fix it in a future release.

    I’ve added this particular use case to the list to that they’re aware of the implications.

    Hi @duom – As Mike mentioned, this is a current, open issue: #58
    The repository is private, so you won’t be able to see it, but I’m posting the link for posterity: https://github.com/woocommerce/woocommerce-gateway-eway/issues/58

    I’m going to go ahead and set this to resolved, but I would suggest keeping an eye out on the changelog and updating as soon as that’s available.
    Please feel free to reply to this thread at any time if you still have issues once that’s released.

    Thanks!
    – Joey

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin RedirectURL Not Working with HTTPS’ is closed to new replies.