Get Card Type

Outputs the card type (brand) in all lowercase for the provided credit card number.

Table of Contents

Parameters

number

Set the credit card number

number="4111111111111111"

Examples

Code:

{exp:cartthrob:get_card_type number="4111111111111111"}<br>
{exp:cartthrob:get_card_type number="1234123412341234"}

Outputs:

visa
Unknown Card Type