Detect card brand in Smart Payments Widget

Modified on Thu, 30 Nov, 2023 at 1:44 PM

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.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article