@adyen/adyen-web
Version:
[](https://www.npmjs.com/package/@adyen/adyen-web)
3 lines (2 loc) • 1 kB
JavaScript
import{GiftcardElement as e}from"../Giftcard/Giftcard.js";import{MealVoucherFields as t}from"./components/MealVoucherFields.js";import{TxVariants as r}from"../tx-variants.js";function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends e{formatProps(e){return{brand:e.type,...e}}formatData(){return{paymentMethod:{type:this.constructor.type,brand:this.props.brand,encryptedCardNumber:this.state.data?.encryptedCardNumber,encryptedSecurityCode:this.state.data?.encryptedSecurityCode,encryptedExpiryMonth:this.state.data?.encryptedExpiryMonth,encryptedExpiryYear:this.state.data?.encryptedExpiryYear}}}constructor(e,r){super(e,{...r,pinRequired:!0,expiryDateRequired:!0,fieldsLayoutComponent:t})}}a(o,"type",r.mealVoucher_FR),a(o,"txVariants",[r.mealVoucher_FR,r.mealVoucher_FR_natixis,r.mealVoucher_FR_sodexo,r.mealVoucher_FR_groupeup]);export{o as MealVoucherFRElement,o as default};
//# sourceMappingURL=MealVoucherFR.js.map