Yes, it is possible for the widget to automatically detect the brand of the card based on the first 2 digits of the card.


This feature can be enabled using the Copy and Pay API. You can view the entire api reference here:


https://peachpayments.docs.oppwa.com/widget-api


<script>
var wpwlOptions = {
        style: "plain",
brandDetection: "true"

}
</script>
<script async src="https://test.oppwa.com/v1/paymentWidgets.js?checkoutId={checkoutId}"></script>


The above sample code sets the style of the payment widget to "Plain" and also enables automatic brand detection.