Skip to main content

How Detection Works

The SDK examines the page URL and HTML to detect the payment provider. Each profile has optimized selectors for that provider’s form structure.

Supported Profiles

ProfileDetectionFields
Stripe ElementsURL or HTML contains “stripe”cardNumber, cardExpiry, cardCvc
Adyen Drop-inHTML contains “adyen-checkout”encryptedCardNumber, encryptedExpiryDate, encryptedSecurityCode
BraintreeHTML contains “braintree-hosted-field”credit-card-number, expiration, cvv
ShopifyURL contains “shopify”cc-number, cc-exp-month, cc-exp-year, cc-csc
GenericFallbackSemantic detection via autocomplete, aria-label, placeholder

Fallback Strategy

If provider-specific selectors fail, the SDK falls back to semantic detection:
  1. Check autocomplete attributes (cc-number, cc-exp, cc-csc)
  2. Check aria-label and placeholder text
  3. Check name and id attributes for common patterns