Documentation

Update

int
CSaleUserCards::Update(
 int ID,
 array arFields
);

Method updates information about new user bank card. Non-static method.

Call parameters

ParameterDescription
ID Updated entry code.
arFields Associative array with new bank card parameters with keys:
  • USER_ID - user code;
  • SORT - sort index;
  • PAY_SYSTEM_ACTION_ID - payment system handler code;
  • CURRENCY - currency, available for deduction from bank card
  • CARD_CODE - CVC2;
  • CARD_TYPE - card type;
  • CARD_NUM - card number;
  • CARD_EXP_MONTH - end month for card validity;
  • CARD_EXP_YEAR - end year for card validity;
  • DESCRIPTION - brief description;
  • SUM_MIN - minimum amount to be deducted from bank card at once;
  • SUM_MAX - maximum amount to be deducted from bank card at once;
  • SUM_CURRENCY - currency for minimum and maximum amount;
  • LAST_STATUS - status for last card use;
  • LAST_STATUS_CODE - status code for the last card use;
  • LAST_STATUS_DESCRIPTION - status description for the last card use;
  • LAST_STATUS_MESSAGE - payment system message;
  • LAST_SUM - last amount deducted from the card;
  • LAST_CURRENCY - currency for the last amount deducted from bank card;
  • ACTIVE - activity flag;
  • LAST_DATE - date of the last card use.

Note: in case card number is updated, this number must be encrypted by the method CSaleUserCards::CryptData before adding the entry.

Returned values

Method returns updated entry code or false in case of error.



© «Bitrix24», 2001-2024