In short
On an e-commerce site, SSL encrypts traffic between the customer's browser and your server, and it is the basic requirement payment providers check before integration. iFrame or redirect checkout methods that never process card data on your own server keep your PCI DSS scope to a minimum. Even so, site-wide HTTPS, TLS 1.2 or later, HSTS, up-to-date software, strong admin logins and regular backups remain your responsibility.
In this guide
On an e-commerce site, SSL is no longer optional; it's a prerequisite for taking payments. Payment gateway providers won't integrate with sites that don't use HTTPS, and browsers flag unencrypted form pages as "Not secure". But payment security is more than SSL. Where card data is processed, your PCI DSS scope and how tightly your server is configured matter at least as much as the certificate. This article draws clear lines around what a store owner is actually responsible for.
What is SSL/TLS, and what exactly does it protect in e-commerce?
SSL (known today as TLS, Transport Layer Security) is the protocol that encrypts data between the browser and the server and uses a certificate to verify that the server really belongs to that domain. In e-commerce, the data that needs protection includes:
- Customer and admin login details (username, password, session cookies)
- Personal data such as shipping address, phone number and email
- Card details entered into the payment form (if the payment page is on your site)
- Cart and order contents
SSL only protects data "in transit". Once data reaches the server, the security of what's stored in the database depends on your hosting configuration and the measures you take at the application level.
DV, OV, EV: Which certificate type do you need?
| Type | What does it validate? | Encryption strength | Who is it for? |
|---|---|---|---|
| DV (Domain Validation) | Control of the domain | Same as the others | The vast majority of stores |
| OV (Organization Validation) | Domain + the company's existence | Same as the others | Businesses that want their company identity in the certificate |
| EV (Extended Validation) | Thorough company verification | Same as the others | Those required by a contract or corporate policy |
Key point: all three types offer the same encryption strength. Modern browsers have also dropped the green company-name bar they used to show for EV certificates. That's why a DV certificate from free AutoSSL or Let's Encrypt is technically sufficient for a WooCommerce store. Setup steps are in the free SSL certificate installation guide.
PCI DSS: The store owner's share
PCI DSS (Payment Card Industry Data Security Standard) is the security standard created by the card brands that anyone who stores, processes or transmits card data must follow. Your scope varies greatly depending on whether card data ever touches your server.
If card data never reaches your server
With the iFrame or redirect checkout methods of payment providers widely used in Türkiye, such as iyzico and PayTR, customers enter their card on the payment provider's page. In this model, the store usually falls under SAQ A, the lightest self-assessment questionnaire. Even so, the current version of the standard expects the page hosting the payment frame to be protected against malicious script injection. In other words, the risk of your site being compromised and the payment frame being swapped for a fake form is still your responsibility.
If the card form runs on your page
In models where card data is sent from a form on your page to the payment provider by your own JavaScript code, the scope grows (SAQ A-EP). Setups that process or store cards on the server bring much heavier obligations. For a small or mid-sized store, the most sensible path is to never let card data reach your server at all.
Golden rule: Never store the card number, expiration date and especially the CVV code in your database, logs or emails. If you need a saved-card feature, use the payment provider's card storage (tokenization) service.
For iyzico and PayTR integration steps and testing, see the WooCommerce iyzico and PayTR payment gateway integration guide.
Measures to take on the hosting side
1. Force HTTPS across the entire site
Serve the whole site over HTTPS, not just the checkout page. If the session cookie is exposed on an unencrypted page, an encrypted checkout page won't help. On cPanel hosting, you can add these rules at the very top of your .htaccess file:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
This rule permanently (301) moves all HTTP requests to HTTPS while preserving the URL, so search engines also record the new address correctly.
2. Add the HSTS header
HSTS (HTTP Strict Transport Security) is a header that tells the browser to connect to your site only over HTTPS for a set period, preventing man-in-the-middle attacks from abusing the redirect on the first request. Add it once you've confirmed SSL works on all your subdomains:
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
</IfModule>
3. Verify that old TLS versions are disabled
PCI DSS doesn't accept insecure protocols such as old SSL and TLS 1.0; TLS 1.2 and TLS 1.3 should be used. You can test that your server rejects TLS 1.0 connections with these commands:
openssl s_client -connect alanadiniz.com:443 -tls1
openssl s_client -connect alanadiniz.com:443 -tls1_2
The first command should return a handshake error, and the second should display the certificate chain.
4. Clean up mixed content
Images, scripts or fonts loaded over HTTP on an HTTPS page break the browser's padlock icon and, in some cases, prevent the payment frame from loading. In WordPress, make sure both addresses under Settings > General start with https://, and update old HTTP links in the database with a search-and-replace tool.
5. Harden the admin area
- Use two-factor authentication on admin accounts and avoid guessable usernames like "admin".
- Give store managers only the role they need ("Shop Manager" is not the same as "Administrator").
- Delete unused plugins and themes; deactivating them isn't enough.
- Don't delay updates to WordPress core, WooCommerce and your payment plugin.
For a more detailed list, see WordPress security: 12 settings that prevent hacks.
6. Keep scripts on the checkout page under control
Most attacks that steal card data target not the server but a malicious JavaScript file added to the checkout page. These attacks are generally called web skimming: the attacker gets in through a plugin vulnerability or a compromised admin account, adds a small script to the checkout page and sends the form data to their own server.
The first step in protection is knowing which scripts load on your checkout page. Remove unnecessary tracking codes, chat widgets and marketing scripts from the checkout page. The second step is the Content-Security-Policy (CSP) header, which tells the browser which sources scripts may be loaded from. To avoid breaking the site, start in report-only mode:
Header always set Content-Security-Policy-Report-Only "script-src 'self' 'unsafe-inline' https://odeme-saglayiciniz.com"
Monitor the violation warnings in the browser console for a few days, complete your allowlist, and then switch the header to enforcing mode. Replace the domain with the addresses in your own payment provider's documentation.
7. Logs and backups
The most commonly skipped step in payment security is being able to work out what happened after something goes wrong. The way to spot an attack is to be able to read your access and error logs; the way back is an up-to-date backup kept separately from the site. Since order data changes every day, set your backup frequency according to your sales volume and test a restore at least once. Backup files contain customer data, so store them encrypted and with restricted access as well.
Customer trust: Non-technical signals
The SSL padlock tells the customer "the connection is encrypted", but it doesn't say "this store is trustworthy". What reduces checkout abandonment: visible contact and tax details, a distance sales agreement and return policy, a KVKK privacy notice (KVKK is Türkiye's personal data protection law) and payment passing through a recognized payment provider's 3D Secure screen. These documents are also required when you apply for a payment gateway.
Quick checklist
- All pages use HTTPS, and HTTP requests redirect with a 301.
- The certificate renews automatically and covers all subdomains.
- The HSTS header is active, and TLS 1.0 and 1.1 are disabled.
- Card data doesn't reach the server; an iFrame or redirect is used.
- Admin logins use two-factor authentication.
- Plugins are up to date, and unused ones are deleted.
- Backups are stored separately from the site, and restores have been tested.
Next step: choose a secure e-commerce platform
Some of the measures above are in your hands, and some are in your hosting provider's. Sunucu Atlas e-commerce hosting plans come standard with a free SSL certificate, the LiteSpeed web server and WordPress + WooCommerce installed via WP Toolkit. For a small store, SA-ET-1 is a solid start; if you want to review suspicious requests yourself, the SA-ET-3 e-commerce plan, which offers access to access and error logs, gives you more visibility. Our servers are in Istanbul, and you can open a support ticket with any setup questions.
Frequently asked questions
Is a free SSL certificate enough for an e-commerce site?
Yes. A free AutoSSL or Let's Encrypt certificate provides the same encryption strength as paid DV certificates and is accepted for payment gateway integrations. OV or EV is only preferred when company validation is required.
Can I store card details in my own database?
You shouldn't. Storing card data puts you under the heaviest PCI DSS obligations, and the CVV code can't be stored under any circumstances. Use the payment provider's tokenization service for saved cards.
If I use iFrame checkout, am I completely out of PCI DSS scope?
No, but you're at the lightest level. It's still your responsibility to keep the page hosting the payment frame from being compromised and replaced with a fake form, so site security still matters.
Is adding HSTS risky?
It can be if not all your subdomains have a valid SSL certificate, because the browser will refuse to connect to them over HTTP. First confirm HTTPS works on every subdomain, then enable HSTS.
How do I find out which TLS versions my site supports?
Try connecting with the openssl s_client command using the -tls1, -tls1_1 and -tls1_2 options. The handshake should fail on old versions, and the certificate chain should appear on TLS 1.2 and 1.3.