Bitrix Site Manager

CSaleUserCards::CryptData

string
CSaleUserCards::CryptData(
 string data,
 string type
);

The method CryptData encrypts or decrypts the credit card number.

Parameters

ParameterDescription
data The data to be encrypted (or decrypted).
type To encrypt the data, pass "E" in this parameter. To decrypt the data, pass "D".

Remarks

The card number must be encrypted before it is saved in the database, and decrypted after it is returned from the database.

Return Values

The method returns the result of the encryption (decryption).