Skip to main content

Get the card BIN type

Check the card number

Use Payrails’ API

You can also use /reference/getbinlookup to fetch a more complete bin details for cards that are used.
You can also get the bin number from the instrument details API /reference/getinstrument

Style Elements

Once we’ve gathered the card BIN type from the steps above, you can initialize the Display SDK based on the value: For more information on how to initialize Display SDK: index#usage
Note: you can also design how you show card details based on the other BIN information (ie. bank issuer)
React
Dynamic styling based on bin 1 Dynamic styling based on bin 2 Dynamic styling based on bin 3
Last modified on September 28, 2026