#rvk
1 messages · Page 1 of 1 (latest)
Hello! How can I help?
i am creating a payment intent with methods=card, but my payment form on ui shows gpay and card as option
stripe.PaymentIntent.create(
amount=amount,
currency='usd',
stripe_account='',
payment_method_types=['card'],
)
And what's the behavior you want? For gpay not to show up at all?
yeah thats coprrect
And what are you using to build your UI? Payment Element?
I am using reactjs. here is the code for the checkout form
<div>
<PaymentElement id="payment-element" />
</div>
<Button
type="primary"
onClick={handleSubmit}
disabled={isProcessing || !stripe || !elements}
size='large'
>
<span id="button-text">{isProcessing ? 'Processing ... ' : 'Process Card'}</span>
</Button>
{message && <div id="payment-message">{message}</div>}
</>
So from that code it looks like you're using PaymentElement
We give you the ability to disable wallets entirely with payment element - https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-wallets
It's something you would pass through in options with your PaymentElement component