A lightweight https checkout switcher for Easy Digital Downloads
This project is discontinued as Easy Digital Downloads published ssl support a few days after the first release of this plugin. Nevertheless others may find this code interesting to see how ssl support can be set up and what it needs behind the scenes to make it work.
Easy Digital Downloads does not include an option to load the checkout page using https (ssl). Easy Digital Downloads support recommends to use a third party https plugin. This plugin is one of those and automatically switches your checkout and other system pages of Easy Digital Downloads to https. This helps you to make your online store PCI-compliant. And customers feel better about your store, too. It's their sensitive data and they want to be sure that it's handled correctly. Credit card payment gateways for Paypal, Stripe or others have to use https (ssl), otherwise a store does not fulfill the requirements requested by credit card companies like VISA, AMEX, MasterCard and others.
How does it work? Simple. If checkout is what the customers asks for, Easy Digital Downloads HTTPS will redirect the client browser to use https. If the customer navigates back to a page or entry not controlled by Easy Digital Downloads HTTPS the same thing happens the other way around.
As a special add-on you may use this plugin to offer more pages via https. To do so:
You can add page and post ids into dedicated field in the settings page of the plugin or
<?php /** * Template Name: HTTPS Page */