brandDetectionType: "binlist",
brandDetectionPriority: ["CARTEBANCAIRE","VISA","MAESTRO","MASTER"],
// Optional. Use SVG images, if available, for better quality.
onChangeBrand: function() {
if (!ready || dotsClicked) {
// Clears all previous dots-hidden logos, if any
$(".wpwl-group-card-logos-horizontal > div").removeClass("dots-hidden");
// Selects all non-hidden logos. They are detected brands which otherwise would be shown by default.
var $logos = $(".wpwl-group-card-logos-horizontal > div:not(.wpwl-hidden)");
// Hides all except the first logo, and displays three dots (...)
$logos.first().after($("<div>...</div>").addClass("dots"));
$logos.filter(function(index) { return index > 0; }).addClass("dots-hidden");
// If ... is clicked, un-hides the logos
$(".dots").click(function() {
$(".dots-hidden").removeClass("dots-hidden");