P
P
p02p2015-08-31 23:31:33
React
p02p, 2015-08-31 23:31:33

How to store bank card numbers on the server?

Please suggest solutions. I understand that it does not pose a particular danger, but I want to approach this wisely.
At the same time, it will be necessary to send this data, and not necessarily to the cardholder.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Anton Spirin, 2019-03-18
@gsdev99

What did I do wrong in this example?

Almost all.
import React, { useState } from "react";

const initialState = [
  { id: 1, name: 'Moscow' },
  { id: 2, name: 'Kazan' },
  { id: 3, name: 'Sochi' },
  { id: 4, name: 'Ekaterinburg' },
];

const App = () => {
  const [ cities, setCities ] = useState(initialState);

  const handler = () => {
    setCities(prevState => [...prevState, { id: 5, name: 'Saint-Petersburg' }]);
  };

  return (
    <div>
      <button onClick={handler}>Click Me</button>
      <ul>
        {cities.map(city => <li key={city.id}>{city.name}</li>)}
      </ul>
    </div>
  );
};

export default App;

�
âš¡ Kotobotov âš¡, 2015-08-31
@p02p

do not store in any way, provide acquiring to banks.
Based on the fact that you are asking such a question, this data is guaranteed to be stolen from you.

A
Armenian Radio, 2015-08-31
@gbg

Please follow the PCI DSS . Is the suitcase of money for certification ready?

I
index0h, 2015-09-01
@index0h

Store the hash of the card number + if necessary the last 4 digits for user identification purposes. You don't need anything more

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question