Confirm a card payment with Stripe React Native

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 47

  • @Leonardorau
    @Leonardorau 3 роки тому +5

    Thanks, very useful information, is there a way to separate the fields of the card? something like to use a custom interface of the card input,
    I have not found the solution in the current version,
    Thank you so much

    • @aliriaz8747
      @aliriaz8747 3 роки тому

      stripe-react-native currently doesn't support split/separate card fields. You have to use `CardField` or `PaymentSheet` for now to get the simplest PCI compliance.

  • @niravkakadiya324
    @niravkakadiya324 2 роки тому +1

    how do i create card elements separately i mean card number, exp date and cvv, i find out demo for javascript but i need in react native.

  • @StripeDev
    @StripeDev  2 роки тому

    Hey Oleh - we recommend trying an alternate browser/private browsing session or clearing the cache. This may be due to a caching issue.

  • @BecodemyOfficial
    @BecodemyOfficial 2 роки тому

    It's really useful for everyone 💝

  • @josephcaruana3566
    @josephcaruana3566 2 роки тому

    I keep getting this error Invariant Violation: requireNativeComponent: "CardField" was not found in the UIManager. Am I not getting the public test key correctly?

  • @nguyennam4492
    @nguyennam4492 3 роки тому +1

    Card detail not complete. Please help me

  • @user_ahfvppkjb
    @user_ahfvppkjb 3 роки тому

    CardField input not accepting to take any input and the keyboard not showing up, any hint for this.
    Thank you

  • @mostafaelgamel6415
    @mostafaelgamel6415 3 роки тому +1

    what's the recommended way to include the cart details? let's say u submit 3x itemA and 4x itemB and u need to validate the cart before accepting payment without client manipulation. SHould it be validated in the payment intent or after and how it should be included?

    • @paulasjes5852
      @paulasjes5852 3 роки тому +1

      Best practise is to never let the client define the amount to be charged. In your example the client should inform the server that the cart contains 3 x item A and 4 x item B, then the server should look up the price of each item (ideally from your database) and do the math to get the final total amount. You then pass on that amount when creating the PaymentIntent on the server.

    • @mostafaelgamel6415
      @mostafaelgamel6415 3 роки тому

      @@paulasjes5852 I c, so when the client initiate the payment intent, the server validates a passed in cart object and calculate the accounting, now where to pass that cart object? Is there a certain predefined property in the payment intent call?

    • @mostafaelgamel6415
      @mostafaelgamel6415 3 роки тому

      @@paulasjes5852 so the reason this is not clear to me is because the examples I’ve seen are only a payment intent with a requested amount, No cart details

    • @paulasjes5852
      @paulasjes5852 3 роки тому

      @Mostafa Elgamel That's something you'd implement on your end, there's no concept of a "cart" when it comes to PaymentIntents.

  • @isaacengineer2280
    @isaacengineer2280 2 роки тому

    Thank you very much for the video content. I'm getting an error " The provided intent client secret does not match the expected client secret format make sure your server is returning the correct value and that is passed to STPPaymentHandler" Please let me know if you got any pointer on how to resolve this issue.

    • @StripeDev
      @StripeDev  2 роки тому

      Hi Isaac-we'd recommend double checking that the client_secret in the expected format. If you've checked that again and still running into issues, we'd recommend reaching out to us through your Dashboard for technical help.

  • @TrendSpotlightMedia2954
    @TrendSpotlightMedia2954 Рік тому

    Hello sir. How do i setup stripe server. And can that server listen if i run app on diffeerent android devices

    • @StripeDev
      @StripeDev  Рік тому

      Hey there-good question! How you would set your server up would heavily depend on what programming language you plan to develop in. You'll find a guide on getting started with the different languages Stripe supports here: stripe.com/docs/development/quickstart

  • @gugasevero76
    @gugasevero76 3 роки тому

    Nice tutorial body!
    And how about the situation when the user already have a credit card register in iOS or Android phone?
    Thank you.

  • @CamilleVingere
    @CamilleVingere 3 роки тому +1

    Thank you so much for this tutorial ! However CardField isn't working, an idea how to solve this problem ?

    • @user_ahfvppkjb
      @user_ahfvppkjb 3 роки тому +1

      Hello Camille,
      I am facing the same problem, cardField input not accepting to take any input and the keyboard not showing up. Do you face the same thing?!

    • @CamilleVingere
      @CamilleVingere 3 роки тому

      @@user_ahfvppkjb It is worse than that, cardField is not showing at all 😨

    • @user_ahfvppkjb
      @user_ahfvppkjb 3 роки тому +1

      @@CamilleVingere My problem solved by upgrading my project to latest react native version and works fine now in android, hope that helps.

    • @CamilleVingere
      @CamilleVingere 3 роки тому

      @@user_ahfvppkjb Thank you, this is very helpful !

    • @nguyennam4492
      @nguyennam4492 3 роки тому +1

      @@CamilleVingere hello everybody, I faced problem : Card detai not complete . please help me

  • @anandhukraju8044
    @anandhukraju8044 2 роки тому

    Hey Stripe devs, how do I integrate Apple pay and google pay with this method?

  • @StripeDev
    @StripeDev  2 роки тому

    Hi Anandhu, you can read on how to accept payments via Google Pay on Stripe here: stripe.com/docs/google-pay
    Likewise, here's how to integrate Apple Pay with your Stripe account: support.stripe.com/questions/enable-apple-pay-on-your-stripe-account.
    Hope this helps. Let us know if you have any additional questions.

  • @Norfeldt
    @Norfeldt 3 роки тому

    Great instructions 👏 would it be possible to having people avoid typing all details every time? So they only have to type CVC or if 2D authentication is required, then let them type nothing the next time and just pop up the auth app?

    • @StripeDev
      @StripeDev  3 роки тому

      Hey there! You can save payment details to a customer object during an initial payment by passing the setupFutureUsage parameter to confirmCardPayment. There’s a React Native guide for this here: stripe.com/docs/payments/save-during-payment?platform=react-native

  • @ShahidKhan-sd7lv
    @ShahidKhan-sd7lv 2 роки тому

    Hi, where is the create-payment-intent route defined?

    • @StripeDev
      @StripeDev  2 роки тому

      Hi Shahid - You should define the route at the beginning of your payment button handler. This route should fetch your server in order to create the PaymentIntent and have your server return the clientsecret back to the client for paymentintent confirmation. In the video the handler where this route is defined is called handlePayPress.

    • @ShahidKhan-sd7lv
      @ShahidKhan-sd7lv 2 роки тому

      @@StripeDev Thanks for your reply.

  • @talhamehmood6189
    @talhamehmood6189 2 роки тому

    when i press pay button i goes in loading state and does not change even though the dashboard shows successful payment but the app does not show that change
    can anyone help with that?

    • @StripeDev
      @StripeDev  2 роки тому

      Hi there! We would need more information on your setup and integration to understand what might be happening. Could you please send us more details over email here support.stripe.com/contact/login?

  • @StripeDev
    @StripeDev  2 роки тому

    Hi Nirav, you can take a look at the CardForm component in the library as it’s a dropin multilne form. Here's more:
    github.com/stripe/stripe-react-native/blob/master/example/src/screens/MultilineWebhookPaymentScreen.tsx. Hope this helps!

  • @graphictester7956
    @graphictester7956 Рік тому

    3DS confirm payment modal not working in production but works fine in dev environment

    • @StripeDev
      @StripeDev  Рік тому

      Hey there, mind sending us an email here: support.stripe.com/contact/login with more details? We'll take a look.

  • @thanosrom4901
    @thanosrom4901 2 роки тому

    The version from the video is actually old, i have tried 100 different things and still not able to integrate stripe in my app ... the documentation should be more accurate.(at least for react native)

  • @StripeDev
    @StripeDev  2 роки тому

    Heya Joseph. This might be cause by omitting the last step at github.com/stripe/stripe-react-native#ios, which is to run pod install in the iOS directory of your project after installing the library. If it doesn't help you, please reach out to us here: support.stripe.com/contact/login
    We'll be happy to help!

  • @dewamscvbvx
    @dewamscvbvx 2 роки тому

    Can you also cover how to use CardForm?

    • @StripeDev
      @StripeDev  2 роки тому +1

      Hi Neil. Here some documentation about React CardForm: stripe.dev/stripe-react-native/api-reference/modules.html#CardForm and github.com/stripe/stripe-react-native/blob/master/docs/accept-a-payment-multiline-card.md#create-your-checkout-page

  • @ataravati
    @ataravati 3 роки тому

    How do I save a credit card for later?

    • @StripeDev
      @StripeDev  3 роки тому +1

      Hey there Aliyar-you might find this documentation helpful for this: stripe.com/docs/saving-cards

  • @StripeDev
    @StripeDev  3 роки тому

    Hey Gustavo-great question! This documentation should be helpful for this scenario in regards to Apple Pay! stripe.com/docs/apple-pay?platform=react-native