#xisheng2074

1 messages · Page 1 of 1 (latest)

wide jacinthBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

abstract summit
#

hello! I'm not sure I understand, why do you want to hide the payment method tab, expiration time and CVC label?

grave cloud
#

hello! What I mean is to display it like this, only allowing card payments

abstract summit
#

you can create PaymentIntent with payment_method_types as only card and see if that works for you

grave cloud
#

Okay, thank you! So how can a Label be hidden?

abstract summit
#

hmmm, maybe try using floating labels instead : https://stripe.com/docs/elements/appearance-api?platform=web#others

You may also consider using the card element instead which has split fields for each input (i.e. one field for card number, one field for expiry date, and another field for CVC) : https://www.youtube.com/watch?v=gW8b0Y6Ae8o

In this episode, you'll learn from Matt about how use separate card input fields for number, expiry and cvc with Stripe.js and Elements.

Presenter

Matthew Ling - Developer Advocate at Stripe - https://twitter.com/mattling_dev

Resources

Official client library: https://github.com/stripe/stripe-ruby
Official documentation: https://stri...

▶ Play video

Customize the look and feel of Elements to match the design of your site.