accept-sample-app icon indicating copy to clipboard operation
accept-sample-app copied to clipboard

localhost development for Accept/ hosted form

Open sftranna opened this issue 4 years ago • 1 comments

is there any workaround for localhost when working with hosted form or payment button. i have a already developed a plugin using SIM module but now i wanted to upgrade this plugin to latest APIs. i dont have an ssl enable website to test kindly share a workaround so that i can update this plugin working locally.

sftranna avatar Apr 26 '20 20:04 sftranna

Generate a self-signed certificate to use on your localhost site:

openssl req -x509 -newkey rsa:2048 -keyout mykey.key -out mycert.pem -days 365 -nodes
sudo cp mycert.pem /etc/ssl/certs
sudo cp mykey.key /etc/ssl/private
sudo a2enmod ssl
sudo nano /etc/apache2/sites-available/default-ssl.conf

Then change these values:

Then run these commands to finish up:

sudo a2ensite /etc/apache2/sites-available/default-ssl.conf
sudo service apache2 restart

aaronfranke avatar Jul 13 '20 01:07 aaronfranke