Skip to content

functions_modules_creditcard

Daniel Spors edited this page Nov 11, 2020 · 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: boolean true or false

Parameters:

  • type $cardnumber Number to check

  • type $cardname Card name

  • type $errornumber OUT The error number

  • type $errortext OUT The error message

Clone this wiki locally