requestBrands method

Future<List<String>> requestBrands({
  1. required String checkoutId,
})

Requests card brand detection for a given checkout ID (BIN lookup).

Returns a list of detected brand names (e.g. "VISA", "MADA"). Returns an empty list if no brand is detected for the given prefix. Does NOT require an active payment session.

checkoutId is required by the HyperPay SDK for brand validation context.

Implementation

Future<List<String>> requestBrands({required String checkoutId}) async {
  return await implementRequestBrands(
    checkoutId: checkoutId,
    channelName: channelName,
    shopperResultUrl: shopperResultUrl,
    paymentMode: paymentMode,
    lang: lang,
  );
}