UNPKG

@adyen/adyen-web

Version:

[![npm](https://img.shields.io/npm/v/@adyen/adyen-web.svg)](https://www.npmjs.com/package/@adyen/adyen-web)

3 lines (2 loc) 727 B
import{CardElement as r}from"./Card.js";import{CVC_POLICY_HIDDEN as t}from"../internal/SecuredFields/lib/constants.js";import{TxVariants as e}from"../tx-variants.js";function o(r,t,e){return t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}class a extends r{formatData(){const r=super.formatData();return r.paymentMethod.type=this.constructor.type,r}formatProps(r){return{...super.formatProps(r),type:e.bcmc,brand:e.bcmc,cvcPolicy:t}}constructor(r,t){super(r,t),o(this,"onBrand",r=>{this.props.onBrand&&this.props.onBrand(r)})}}o(a,"type",e.bcmc),o(a,"defaultProps",{...r.defaultProps,brands:["bcmc","maestro","visa"]});export{a as default}; //# sourceMappingURL=Bancontact.js.map