Skip to content

functions_modules_creditcard

Daniel Spors edited this page Feb 14, 2023 · 2 revisions

Functions in file modules/creditcard.php

creditcard_getnames

Returns a list of supported credit cards.

Definition: public function creditcard_getnames()

Returns: array List of supported cards

creditcard_check

Syntactically checks a credit card number. Valid values for $cardname are returned ny creditcard_getnames.

Definition: public function creditcard_check($cardnumber, $cardname, $errornumber, $errortext)

Returns: bool true or false

Parameters:

  • string $cardnumber Number to check

  • string $cardname Card name

  • int $errornumber OUT The error number

  • string $errortext OUT The error message

Clone this wiki locally