The foundation of ecommerce payment security is ensuring card information never reaches the store’s own server and that payment is completed through a licensed provider’s infrastructure with 3D Secure authentication. Once this structure is established, the store chooses never to handle card data rather than protecting it; the most valuable information an attacker could steal is not present on the website. What remains is protecting the website itself, the administration panel, and customers’ personal data.
This article covers integration models that vary according to who hosts the payment form, what PCI DSS means for small stores, how 3D Secure works, how to check a payment institution’s license, and the data security obligations imposed by KVKK (Turkey’s Personal Data Protection Law). The information is based on the PCI Security Standards Council, EMVCo, the Central Bank of the Republic of Turkey, and the text of Law No. 6698.
What layers make up ecommerce payment security?
A secure payment process consists of complementary layers rather than a single product. A gap in any one weakens the protection provided by the others:
- Connection: the entire website opening over HTTPS
- Payment form: whether the area where card information is entered is hosted by the store or the payment institution
- Institution: the party receiving payment being a bank or a payment institution authorized by TCMB (the Central Bank of the Republic of Turkey)
- Standard: parties handling card data complying with PCI DSS requirements
- Authentication: the cardholder confirming their identity through 3D Secure
- Website and dashboard: protecting ecommerce software, plugins, and administrator accounts
- Personal data: processing names, addresses, phone numbers, and order history in compliance with KVKK
The connection layer is only the beginning of this list. HTTPS encrypts data carried between the browser and server; it does not prevent malicious code being added to the payment page, a weak administrator password, or an outdated plugin. An encrypted connection in the address bar is therefore a necessary but insufficient condition on its own; the main weight of payment security lies in the subsequent layers.
Card data should not be stored on the website: who hosts the payment form?
Card numbers, expiration dates, and security codes must never be written to the store’s database, order notes, emails, or logs under any circumstances. When card data is not stored, there is no card data to leak. Payment integrations are divided into three main models according to where card information is entered:
| Model | Where is card information entered? | Burden on the store |
|---|---|---|
| Redirect to a payment page | The customer goes to the payment institution’s own page, where the transaction is completed | Lowest; the integrity of the redirect link must be protected |
| Embedded form (iframe or provider script) | The form appears on the store page, while its fields are loaded from the payment institution’s server | Low; other scripts added to the page must be kept under control |
| Direct (API) integration | Card information is passed to the payment institution through the store’s server | Highest; the server is considered part of the cardholder data environment |
For small and medium-sized stores, the first two models are the simplest way to leave the security burden to a specialized institution. If card information is needed for recurring payments, it is stored in the payment institution’s card storage (tokenization) service rather than in the store; the store knows only a meaningless reference code corresponding to the card.
Identifying which model is used is not difficult. If the domain in the address bar changes to the payment institution during payment, the redirect model is in use. If the form appears on the store page, check which domain loads the card fields through the browser’s developer tools; if the fields come from the store’s own address, card data passes through the server, and this must be discussed with the provider.
What is PCI DSS, and does it cover a small store too?
PCI DSS is a set of technical and operational requirements established to protect payment card data and applies regardless of the store’s size. The standard is published by the PCI Security Standards Council, founded by Visa, Mastercard, American Express, Discover, and JCB; the current version family is 4.x. According to PCI SSC’s PCI DSS page , the standard applies to all parties storing, processing, or transmitting card data and those positioned to affect the security of that data.
The final phrase matters: even a website that leaves the payment form entirely to the provider can affect the process because it controls the link to the payment page or the code surrounding the embedded form. Outsourcing the payment service reduces the website’s burden without eliminating responsibility. PCI SSC also states that encryption alone does not take card data out of scope.
How compliance is validated varies according to the environment’s structure. Small businesses generally complete a self-assessment questionnaire (SAQ); according to the council, the merchant’s acquiring bank or payment institution informs it which questionnaire applies and whether validation is required. Getting this answer in writing when applying for a virtual POS prevents uncertainty later.
Page contents
How does 3D Secure work?
3D Secure is a protocol through which the card-issuing bank authenticates the cardholder’s identity in online purchases where the card is not physically presented. According to EMVCo, which manages its current version, EMV 3-D Secureallows transaction, payment method, and device information to be shared between the store and the card issuer. The issuer can use this data to identify fraudulent transactions while approving trusted transactions without adding an unnecessary step. The general flow is as follows:
- The customer enters card information into the payment institution’s form.
- The payment institution sends transaction and device information to the card-issuing bank.
- The bank evaluates risk and, if necessary, requests an SMS code or mobile banking approval.
- The authentication result returns to the payment institution, and authorization is obtained.
- The customer is redirected back to the store’s order page with the result information.
For the store, the value of 3D Secure lies in being able to stop purchases attempted with stolen card information at payment time by asking the card’s actual owner. If payment without authentication will be offered, its risks and conditions should be discussed separately with the payment institution.
After integration is completed, successful, declined, and abandoned authentication scenarios on the bank’s screen are tested separately in the payment institution’s test environment. Check that an order does not remain pending and unnecessarily reserve stock when a customer abandons authentication, and that the order is approved automatically when payment succeeds. These tests reveal in advance the problems customers would encounter after launch.
Let’s review your payment infrastructure together
A free preliminary assessment can examine together which integration model the store uses at checkout, how the 3D Secure flow works, which third-party codes run on the payment page, and how the administration panel is protected. Identified gaps are recorded with an indication of which should be addressed first.
How do you check a licensed payment institution?
Institutions providing payment services in Turkey must obtain an operating license from the Central Bank of the Republic of Turkey, and the list of authorized institutions is published on TCMB’s website. The main regulation in this area is Law No. 6493 of 2013 and the regulations based on it. If a virtual POS is obtained directly from a bank, the bank is the counterparty; if obtained through a payment institution, the check proceeds in this order:
- Look for the institution’s legal business name in TCMB’s list of operating payment institutions or electronic money institutions.
- The list also shows which services listed in Article 12 of the law the institution is authorized to provide; confirm that the scope of authorization meets the store’s needs.
- Read the fees, fund transfer times, refund and dispute processes, and allocation of security responsibilities in the contract.
- Verify that the integration module used for the ecommerce software comes from the institution’s official source and is kept updated.
Accepting payments through an intermediary absent from the list creates uncertainty both about the safety of the funds and about who is entrusted with customer data. TCMB has also published a separate application guide for reporting providers of unauthorized payment services.
Payment and customer data under KVKK
Even if card data is not stored by the store, names, addresses, phone numbers, email addresses, and order history are personal data and must be protected under KVKK. Article 12 of Personal Data Protection Law No. 6698requires the data controller to take all necessary technical and administrative measures to prevent unlawful processing and access and ensure the preservation of personal data.
The same article regulates two further points. If data is processed on behalf of the store by another person or organization, such as a hosting company, payment institution, shipping provider, or email service, the store is jointly responsible with these parties for taking the measures. If data comes into the possession of others through unlawful means, the data controller notifies the affected person and the Personal Data Protection Board as soon as possible.
In practice, this means allowing only necessary people to access order data, closing former staff accounts, not leaving backups in public folders, and establishing data processing terms with service providers in writing. The privacy notice and privacy policy should also be accessible before the payment page.
Malicious code injected into the payment page
One of the most serious risks for stores that do not keep card data on the website is malicious JavaScript injected into the payment page. If an attacker adds code to the page through a plugin vulnerability or stolen administrator account, information entered by customers can be copied before reaching the payment institution, or the redirect link can be changed to a fake page. These attacks may remain unnoticed for a long time because they do not change the page’s appearance.
The way to protect against this is to keep checkout as simple as possible. Only essential scripts should run on payment and cart pages; chat tools, heatmaps, and marketing codes should be removed from these pages or strictly restricted. Monitoring changes to theme and plugin files allows unexpected code additions to be detected early.
Repeated reports of unrecognized charges from customers, suspicious transaction warnings from the payment institution, or a script in the payment page’s source sending data to an unfamiliar domain are signs requiring immediate investigation. In this situation, the payment institution is informed immediately, administrator passwords are changed, and checkout is not reopened until the leak’s source is found; this investigation is part of the process of recovering a hacked WordPress website after an attack.
Checklist for store software and the administration panel
No matter how secure the payment institution is, the process is endangered if the store software itself is compromised. On open-source platforms such as WooCommerce, the following checks should be performed regularly:
- The ecommerce plugin, payment module, and theme are up to date and sourced from the official directory or developer’s own website
- Two-step authentication is enabled for all administrator and store manager accounts
- Each employee has only the role sufficient for their work; there are no shared accounts
- The payment institution’s API keys and secrets are in secure configuration rather than in the code
- Test environment keys and live keys are not mixed up; test mode is not left enabled on the live website
- Backups are regular, encrypted, and stored separately from the website
Some of these checks are performed once during setup, while others require ongoing monitoring. If the store’s infrastructure is being planned for the first time, responsibility for updates and security should also be clarified during ecommerce software selection ; for live stores, this work is linked to the WordPress maintenance and updates routine.
Signals that reassure customers: badges or transparency?
Customers judge payment security by what they see on screen rather than by technical infrastructure. Lasting trust comes from a predictable process, rather than a badge in a corner of the page. Clearly showing shipping costs, delivery times, return conditions, and the total amount before checkout prevents surprises at the final step.
Displaying the payment institution’s name on the payment screen, showing the customer’s own bank approval screen during 3D Secure, and sending a clear confirmation email after the order are real trust signals. “One hundred percent secure” badges unsupported by any audit are misleading and should not be used. Easily found contact information, the distance sales agreement, and privacy notices are also part of the same chain of trust.
Common ecommerce payment security mistakes
Most problems arise from business habits before they arise from a technical vulnerability. Common mistakes encountered in practice and the correct approaches are as follows.
Taking card information by phone or message: asking for the card number through WhatsApp or email when an order cannot be completed leaves the data in uncontrolled channels. The correct method is to send the customer a payment link generated by the payment institution.
Installing the payment module from an unofficial source: cracked or modified plugin packages may contain code with direct access to the payment page.
Considering only commission when deciding: when choosing a provider, licensing, 3D Secure support, refund processes, and technical support should be weighed as heavily as the commission rate. When planning the setup budget, these items should also be considered separately within the cost of setting up an ecommerce website for the business.
Thinking of security as a one-time setup: payment modules and ecommerce software change behavior as they receive updates; after every major update, the payment flow should be tested from beginning to end with a test order.
Let’s plan a secure payment flow together
If a new store is being built or an existing store’s checkout is to be reviewed, the integration model and provider selection can be evaluated together from the beginning. In the ecommerce website development process, payments, shipping, and legal texts are addressed within the same plan; get in touch through WhatsApp or by phone for a free preliminary assessment.
Related guides
- SSL certificates and website security
- Building an ecommerce website with WordPress
- Requirements for setting up an ecommerce website
- Choosing ecommerce software
- Ecommerce website development service
- Google Merchant Center setup
- The “Your connection is not private” error and SSL
- If the WooCommerce checkout page does not work
- How do you get a virtual POS?
Frequently asked questions
Can card information be stored on the store's own server?
It should not be stored; card information is not written to the store’s database, emails, or order notes. If recurring payments are needed, the card is kept in the payment institution’s card storage service, and the store knows only a reference code.
Does PCI DSS also apply to small ecommerce websites?
Yes, according to PCI SSC, the standard applies to all parties processing card data or able to affect its security, regardless of business size. The merchant’s acquiring bank or payment institution informs it which validation is required.
What is 3D Secure?
3D Secure is the protocol through which the card-issuing bank authenticates the cardholder’s identity in online purchases. Depending on transaction risk, the bank may approve without an additional step or request an SMS code or mobile banking approval.
How do you know whether a payment institution is licensed?
Look for the institution’s legal name in the list of operating payment institutions or electronic money institutions published on TCMB’s website. The list also shows which payment services the institution is authorized to provide.
Is an SSL certificate enough for payment security?
It is not enough; HTTPS only encrypts data in transit. The payment form must also be hosted by the payment institution, with 3D Secure, up-to-date software, and protected administrator accounts.
What security precautions does KVKK require from an ecommerce website?
Article 12 of Law No. 6698 requires technical and administrative measures to prevent unlawful processing of and access to personal data. If a data leak occurs, the affected person and the Board are notified as soon as possible.
Is it appropriate to receive customer card details through WhatsApp?
It is not appropriate; card information remains in uncontrolled messaging and email channels. Instead, a secure payment link generated by the payment institution is sent to the customer.
Call us
Call us for detailed information.
Let us call you!
Share your number and let us call you!
Our other services
- › Corporate web design
- › Ecommerce website development
- › SEO optimization
- › WordPress website development
- › Google advertising management
- › WordPress speed optimization
Service areas
- › Web design in Sakarya
- › Web design in Tekirdağ
- › Web design in Bursa
- › Web design in Beşiktaş
- › Web design in Şişli
- › Web design in Tuzla
- › Web design in Ümraniye
- › Web design in Kadıköy
- › Web design in İstanbul
- › Web design in Ankara
- › Web design in Ataşehir
- › Web design in Üsküdar
- › Web design in Kartal
- › Web design in Maltepe
- › Web design in Pendik
- › Web design in Kocaeli
- › Web design in İzmir
- › Web design in Antalya