accept-sample-app
accept-sample-app copied to clipboard
localhost development for Accept/ hosted form
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.
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