#rvk

1 messages · Page 1 of 1 (latest)

knotty summitBOT
astral mountain
#

Hello! How can I help?

chrome arch
#

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'],
)

astral mountain
#

And what's the behavior you want? For gpay not to show up at all?

chrome arch
#

yeah thats coprrect

astral mountain
#

And what are you using to build your UI? Payment Element?

chrome arch
#

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>}
</>

astral mountain
#

So from that code it looks like you're using PaymentElement

#

It's something you would pass through in options with your PaymentElement component