Use showSaveOption for save card checkbox

This commit is contained in:
Emili Castells Guasch 2024-05-21 10:39:40 +02:00
parent b7b19cfbc7
commit cf9f323e9b
2 changed files with 5 additions and 6 deletions

View file

@ -8,10 +8,5 @@ export const CheckoutHandler = ({getCardFieldsForm}) => {
getCardFieldsForm(cardFieldsForm)
}, []);
return (
<>
<input type="checkbox" id="save" name="save"/>
<label htmlFor="save">Save your card</label>
</>
)
return null
}

View file

@ -10,4 +10,8 @@ registerPaymentMethod({
edit: <div></div>,
ariaLabel: config.title,
canMakePayment: () => {return true},
supports: {
showSavedCards: true,
showSaveOption: true
}
})