Stripe Elements Appearance API basics

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ต.ค. 2024

ความคิดเห็น • 13

  • @Anthony-ke8bm
    @Anthony-ke8bm ปีที่แล้ว

    why do your examples say to store clientSecret retrieved from creating a paymentIntent in state...
    either naming the value a secret was a poor decision or it doesnt matter if it is exposed to the browser. or whoever made the documentation made the assumption that the reader knows not to store sensitive info in state?
    lots of questions here , rest of the docs were great though for the most part. got everything set up pretty quickly

  • @connerleverett9860
    @connerleverett9860 2 ปีที่แล้ว

    Thanks for the great demo! Is there a plan to support individual payment method Elements (such as CardElement) ?

    • @StripeDev
      @StripeDev  2 ปีที่แล้ว

      Hi Conner-just to check in, are you wanting to be able to use the Appearance API for these other Elements?

    • @connerleverett9860
      @connerleverett9860 2 ปีที่แล้ว

      @@StripeDev I was hoping to! But I saw in the documentation that "The Elements Appearance API doesn’t support individual payment method Elements (such as CardElement). Use the Style object to customize your Element instead". I'm new to Stripe but I'm finding it a bit harder to style individual elements (especially if you want to style the element container as then you have to mount the component instead of just rendering a component).
      Edit: Just found the `options` prop on the CardElement which allows all of the styling so I can render that!

    • @StripeDev
      @StripeDev  2 ปีที่แล้ว

      Hm, there might be some confusion with how individual Elements are styled compared to the newer Elements.
      With previous individual payment Elements, you need to style the you are rendering the in. The style object mostly helps you color text across various states (base, error, etc.).

    • @connerleverett9860
      @connerleverett9860 2 ปีที่แล้ว

      @@StripeDev Cool, thanks for the quick feedback!

  • @ol1175
    @ol1175 2 ปีที่แล้ว +1

    How can I style the payment element in React?

  • @alifarooq5718
    @alifarooq5718 2 ปีที่แล้ว

    how to make second tab active when modal open..??

    • @StripeDev
      @StripeDev  2 ปีที่แล้ว

      Hi Ali! 👋 We'd love to help you out here, but we're not too sure about your question. Would you mind clarifying for us?

  • @juliojean-simon4364
    @juliojean-simon4364 2 ปีที่แล้ว

    Hi 😊
    How are you doing today