mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Use showSaveOption
for save card checkbox
This commit is contained in:
parent
b7b19cfbc7
commit
cf9f323e9b
2 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -10,4 +10,8 @@ registerPaymentMethod({
|
|||
edit: <div></div>,
|
||||
ariaLabel: config.title,
|
||||
canMakePayment: () => {return true},
|
||||
supports: {
|
||||
showSavedCards: true,
|
||||
showSaveOption: true
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue