1

I have integrated authorize.net accept js payment option on my local magento site.

First of all, in my local site, I have integrated the hosted payment form (predefined payment form). It is working fine. It returns a successful transaction message.

And now I'm gonna work with my own payment form, it requires https connection. I just followed this doc. And I have used the same example that was mentioned in this doc.

I'm working on my local server. Once these were working fine means only, I can push to live server.

So, now my doubt is - why hosted payment form working in a local server ( unsecure connection - http) and why my custom form is not working in my local server?

It returns E_WC_02 error while using a custom payment form. I want to check this custom payment form in my local server also.

Thanks in advance.

noob
  • 774
  • 1
  • 10
  • 23
Ramya
  • 199
  • 10
  • Are you using sandbox or live? because afaik accept.js doesn't need https on sandbox. – Saad Suri Mar 11 '19 at 05:10
  • Now I'm using Sandbox account only. So any other idea to use the custom payment form with `http` connection. – Ramya Mar 11 '19 at 05:11

1 Answers1

1

I have currently solved this issue by using ngrok. I hope this will be helpful to others. Recently I got this solution.

After installing this ngrok in my local server and then I have changed my web/secure/base_url and web/unsecure/base_url in core_config_data table. i.e, to replace a http://localhost to http://2b45c5ab.ngrok.io and https://localhost to https://2b45c5ab.ngrok.io

Thanks.

Ramya
  • 199
  • 10