#krishna-paymentelement-walletonly
1 messages · Page 1 of 1 (latest)
krishna-paymentelement-walletonly
Hey @pale wharf it's not possible to do wallets only and not cards with PaymentElement. What you want to use in that case is our PaymentRequestButton: https://stripe.com/docs/stripe-js/elements/payment-request-button
Can I disable wallets and keep only card?
Yes you can disable wallets on PaymentElement using https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-wallets
How to use it for react?
What have you tried?
Nothing
Can you try something first in that case? Like have you used PaymentElement before? Do you have some sample code?
<PaymentElement id="payment-element" options={paymentElementOptions}/>
what is paymentElementOptions?
const paymentElementOptions = {
layout: "tabs"
}
okay so your code is already passing options like layout and my recommendation was the wallets option which is in the same place. So you can change that code to disable wallets and it should work