Migration Notice: We are transitioning from <bw-widget> to <nw-blocks> tags. While both are currently supported for backward compatibility, <nw-blocks> is now the recommended tag for all new implementations. Existing <bw-widget> implementations will continue to function.
The PaymentMethods widget displays a comprehensive table of available payment methods for a casino or betting brand, showing detailed information including method logos, processing times, and deposit/withdrawal availability. Features a collapsible interface with “Show More/Less” functionality to manage long lists efficiently.
Key Features:
| Attribute | Type | Required | Default | Description |
|---|---|---|---|---|
id |
string | Yes | - | Must be “paymentMethods” |
cloaked-link |
string | Yes | - | Brand identifier/cloaked link |
product |
string | No | "" | Product filter (CA=Casino, SP=Sports, etc.) |
language |
string | No | “en” | ISO 639-1 language code |
country |
string | No | "" | ISO 3166-1 country code (supports state: US-NJ, CA-ON) |
countrystate |
string | No | - | State/province code (auto-parsed from country) |
items-displayed |
number | No | - | Maximum number of payment methods to display |
order |
string | No | "" | Custom ordering for payment methods |
headers |
array | No | […] | Custom header translation keys |
referer |
string | No | - | Referrer tracking parameter |
configuration |
JSON | No | {} | Styling configuration object |
The configuration attribute accepts a JSON object for styling:
{
"button-colors": ["#0EA75F", "#048D4C"],
"font-size": "14px"
}
| Property | Type | Default | Description |
|---|---|---|---|
button-colors |
array | ["#b1b1b1", “#b1b1b1”] | Button gradient colors [start, end] |
font-size |
string | “14px” | Font size for table text |
Default Headers:
Translation Keys:
wgt-paymentMethods-method: “Method”wgt-paymentMethods-delay: “Processing Time”wgt-paymentMethods-deposit: “Deposit”wgt-paymentMethods-withdrawal: “Withdrawal”Customization:
<nw-blocks
id="paymentMethods"
headers='["custom-method", "custom-time", "custom-deposit", "custom-withdrawal"]'>
</nw-blocks>
Fixed Height Display:
Payment Method Row:
Visibility:
States:
Interaction:
The widget injects a self-executing script that:
document.getElementById("{id}-toggleDisplay").addEventListener("click", () => {
const tableBodyHeight = document.getElementById('{id}__table-body').style.height;
if(tableBodyHeight === "auto") {
// Collapse
document.getElementById("{id}-toggleDisplay").innerHTML = "Show More";
document.getElementById("{id}-triangleUp").style.display = "none";
document.getElementById("{id}-triangleDown").style.display = "flex";
document.getElementById("{id}__table-body").style.height = "168px";
} else {
// Expand
document.getElementById("{id}-toggleDisplay").innerHTML = "Show Less";
document.getElementById("{id}__table-body").style.height = "auto";
document.getElementById("{id}-triangleUp").style.display = "flex";
document.getElementById("{id}-triangleDown").style.display = "none";
}
});
Features:
Display:
Usage:
<CircleCheck active={false} />
Display:
Usage:
<CircleCloseFill />
<nw-blocks
id="paymentMethods"
cloaked-link="greatwin-casino"
language="en"
product="CA"
country="UK"
items-displayed="10"
configuration='{"button-colors": ["#05842A", "#096725"], "font-size": "14px"}'>
</nw-blocks>
<nw-blocks
id="paymentMethods"
cloaked-link="betsson-sports"
language="en"
product="SP"
country="SE"
items-displayed="8">
</nw-blocks>
<!-- English -->
<nw-blocks
id="paymentMethods"
cloaked-link="fresh-casino"
language="en"
product="CA"
country="UK">
</nw-blocks>
<!-- Portuguese -->
<nw-blocks
id="paymentMethods"
cloaked-link="fresh-casino"
language="pt"
product="CA"
country="BR">
</nw-blocks>
<!-- Spanish -->
<nw-blocks
id="paymentMethods"
cloaked-link="fresh-casino"
language="es"
product="CA"
country="ES">
</nw-blocks>
<!-- French -->
<nw-blocks
id="paymentMethods"
cloaked-link="cresus-casino"
language="fr"
product="CA"
country="FR">
</nw-blocks>
<!-- German -->
<nw-blocks
id="paymentMethods"
cloaked-link="betway-casino"
language="de"
product="CA"
country="DE">
</nw-blocks>
<!-- New Jersey -->
<nw-blocks
id="paymentMethods"
cloaked-link="draftkings-casino"
language="en"
country="US"
product="CA">
</nw-blocks>
<!-- Pennsylvania -->
<nw-blocks
id="paymentMethods"
cloaked-link="fanduel-casino"
language="en"
country="US-PA"
product="CA">
</nw-blocks>
<!-- Michigan -->
<nw-blocks
id="paymentMethods"
cloaked-link="betmgm-casino"
language="en"
country="US-MI"
product="CA">
</nw-blocks>
<!-- Ontario, Canada -->
<nw-blocks
id="paymentMethods"
cloaked-link="betano-sports"
language="en"
country="CA-ON"
product="SP">
</nw-blocks>
<!-- Show top 5 methods -->
<nw-blocks
id="paymentMethods"
cloaked-link="leovegas-casino"
language="en"
country="SE"
items-displayed="5">
</nw-blocks>
<nw-blocks
id="paymentMethods"
cloaked-link="branded-casino"
language="en"
country="UK"
configuration='{"button-colors": ["#FFD700", "#FFA500"], "font-size": "16px"}'>
</nw-blocks>
<!-- No items limit - show all available -->
<nw-blocks
id="paymentMethods"
cloaked-link="greatwin-casino"
language="en"
product="CA"
country="ZZ">
</nw-blocks>
items-displayed to 6-10 for balanced display<nw-blocks
id="paymentMethods"
cloaked-link="casino-brand"
headers='["custom-payment-label", "custom-time-label", "custom-deposit-label", "custom-withdrawal-label"]'>
</nw-blocks>
Translation file:
{
"custom-payment-label": "Payment Option",
"custom-time-label": "Speed",
"custom-deposit-label": "Fund Account",
"custom-withdrawal-label": "Cash Out"
}
<!-- Green theme (default) -->
<nw-blocks
configuration='{"button-colors": ["#05842A", "#096725"]}'>
</nw-blocks>
<!-- Blue theme -->
<nw-blocks
configuration='{"button-colors": ["#2196F3", "#1976D2"]}'>
</nw-blocks>
<!-- Orange theme -->
<nw-blocks
configuration='{"button-colors": ["#FF6B00", "#E65100"]}'>
</nw-blocks>
<!-- Purple theme -->
<nw-blocks
configuration='{"button-colors": ["#9C27B0", "#7B1FA2"]}'>
</nw-blocks>
<!-- Gold theme -->
<nw-blocks
configuration='{"button-colors": ["#FFD700", "#FFA500"]}'>
</nw-blocks>
<!-- Small text -->
<nw-blocks
configuration='{"font-size": "12px"}'>
</nw-blocks>
<!-- Standard text -->
<nw-blocks
configuration='{"font-size": "14px"}'>
</nw-blocks>
<!-- Large text -->
<nw-blocks
configuration='{"font-size": "16px"}'>
</nw-blocks>
<!-- Extra large text -->
<nw-blocks
configuration='{"font-size": "18px"}'>
</nw-blocks>
<nw-blocks
id="paymentMethods"
cloaked-link="premium-casino"
language="en"
country="UK"
product="CA"
items-displayed="8"
configuration='{
"button-colors": ["#1E88E5", "#1565C0"],
"font-size": "15px"
}'>
</nw-blocks>
Widget fetches payment method data:
{
brand: {
cloakedLink: "greatwin-casino",
brandName: "GreatWin Casino",
isBrandActive: true,
product: "CA",
methodList: [
{
paymentMethod: "visa",
image: "https://cdn.example.com/payment-methods/visa.png",
withdrawalTime: "Instant",
deposit: true,
withdrawal: true,
displayOrder: 1
},
{
paymentMethod: "mastercard",
image: "https://cdn.example.com/payment-methods/mastercard.png",
withdrawalTime: "Instant",
deposit: true,
withdrawal: true,
displayOrder: 2
},
{
paymentMethod: "skrill",
image: "https://cdn.example.com/payment-methods/skrill.png",
withdrawalTime: "24 hours",
deposit: true,
withdrawal: true,
displayOrder: 3
},
{
paymentMethod: "neteller",
image: "https://cdn.example.com/payment-methods/neteller.png",
withdrawalTime: "24 hours",
deposit: true,
withdrawal: true,
displayOrder: 4
},
{
paymentMethod: "bank-transfer",
image: "https://cdn.example.com/payment-methods/bank.png",
withdrawalTime: "3-5 days",
deposit: true,
withdrawal: true,
displayOrder: 5
}
]
}
}
Required Fields:
cloakedLink: Brand identifierisBrandActive: Brand statusmethodList: Array of payment methodsPayment Method Fields:
paymentMethod: Method identifier (required)image: Logo URL (required)withdrawalTime: Processing time text (required)deposit: Boolean - supports deposits (required)withdrawal: Boolean - supports withdrawals (required)displayOrder: Sorting order (optional)Processing Time Examples:
Required i18n keys:
{
"wgt-paymentMethods-method": "Method",
"wgt-paymentMethods-delay": "Processing Time",
"wgt-paymentMethods-deposit": "Deposit",
"wgt-paymentMethods-withdrawal": "Withdrawal",
"wgt-payment-show-more": "Show More",
"wgt-payment-show-less": "Show Less"
}
Language-Specific Examples:
{
"en": {
"wgt-paymentMethods-method": "Method",
"wgt-paymentMethods-delay": "Processing Time",
"wgt-paymentMethods-deposit": "Deposit",
"wgt-paymentMethods-withdrawal": "Withdrawal"
},
"fr": {
"wgt-paymentMethods-method": "Méthode",
"wgt-paymentMethods-delay": "Délai de traitement",
"wgt-paymentMethods-deposit": "Dépôt",
"wgt-paymentMethods-withdrawal": "Retrait"
},
"es": {
"wgt-paymentMethods-method": "Método",
"wgt-paymentMethods-delay": "Tiempo de procesamiento",
"wgt-paymentMethods-deposit": "Depósito",
"wgt-paymentMethods-withdrawal": "Retiro"
},
"de": {
"wgt-paymentMethods-method": "Methode",
"wgt-paymentMethods-delay": "Bearbeitungszeit",
"wgt-paymentMethods-deposit": "Einzahlung",
"wgt-paymentMethods-withdrawal": "Auszahlung"
}
}
Payment method data is cached:
PAYMENT_METHODS:{cloakedLink}:{country}:{language}:{product}If brand is inactive:
<p id="inactive-brand" style="display: none;">
The brand with name {brandName} is currently inactive or not allowed in this country!
</p>
Handling:
isBrandActive flag in CMSIf no methods available:
Missing Image:
Missing Processing Time:
Missing Deposit/Withdrawal Flags:
If JavaScript disabled:
| Feature | PaymentMethods | PaymentDeposits2 |
|---|---|---|
| Display Type | Table with details | Logo grid only |
| Information | Method, time, deposit/withdrawal | Visual logos |
| Processing Times | ✅ Yes | ❌ No |
| Deposit/Withdrawal Flags | ✅ Yes | ❌ No |
| Toggle Type | Show More/Less (fixed height) | Smart expand (per row) |
| Responsive | ✅ Scrollable table | ✅ Dynamic columns |
| Items Limit | ✅ Yes | ✅ Yes |
| Use Case | Detailed comparison | Quick visual reference |
| Mobile | ⚠️ May require scroll | ✅ Optimized |
When to use PaymentMethods:
When to use PaymentDeposits2:
All examples above use the new <nw-blocks> tag. For backward compatibility, you can still use <bw-widget>:
<!-- Old syntax (still supported) -->
<bw-widget
id="paymentMethods"
cloaked-link="greatwin-casino"
language="pt"
product="CA"
country="ZZ"
items-displayed="4"
configuration='{"button-colors": ["#0EA75F", "#048D4C"], "font-size": "14px"}'>
</bw-widget>
<!-- New syntax (recommended) -->
<nw-blocks
id="paymentMethods"
cloaked-link="greatwin-casino"
language="pt"
product="CA"
country="ZZ"
items-displayed="4"
configuration='{"button-colors": ["#0EA75F", "#048D4C"], "font-size": "14px"}'>
</nw-blocks>
Both tags work identically, but <nw-blocks> is recommended for all new implementations.