Integrating Payment Gateway in React Native: The Ultimate Guide

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

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

  • @rushivachhani8615
    @rushivachhani8615 3 ปีที่แล้ว

    Bhai excellent video. Moj kardi🕺🕺🕺

  • @dong_spain
    @dong_spain 3 ปีที่แล้ว +2

    Hi, my friend, you did a great job! Thank you so much for sharing such a valuable tutorial!

  • @cankatmert
    @cankatmert 3 ปีที่แล้ว

    Great tutorial mate, subscribed. Cheers!

  • @mondeepgogoi3275
    @mondeepgogoi3275 3 ปีที่แล้ว

    Great tutorial brother . Looking for more great react native contents !

    • @codewithjay
      @codewithjay  3 ปีที่แล้ว +1

      Thank you for appreciation. Definitely I will post more videos related to React Native. Stay tuned to my channel for more updates.

  • @El_ii
    @El_ii 3 ปีที่แล้ว

    @J Gogoi Hey, I just wanted to say thank you so much, you don't how much you helped me. Please keep up the good work you do.
    Greetings from Germany.

  • @dhananjaikumar817
    @dhananjaikumar817 3 ปีที่แล้ว

    great video sir ,keep up the good work

  • @mmwmmw2055
    @mmwmmw2055 3 ปีที่แล้ว +1

    Thank you for the video
    please make a video of connecting expo with square in app payments

    • @codewithjay
      @codewithjay  3 ปีที่แล้ว

      Sure, I will try to do so.

  • @jennlagarde
    @jennlagarde 4 ปีที่แล้ว +2

    Hi Thank you very much for your tutorial, it helped me a lot! best tutorial I found. I have just one question about the customization of the visual card in WebView. I'm trying to change all placeholders in French but it's not working for the name "Card number". Do you know how can I find a solution? Thanks in advance for your answer.

    • @codewithjay
      @codewithjay  4 ปีที่แล้ว

      Hi Jenn, thank you for appreciation. It is possible to change the placeholder and even the look and feel of the card. We can play with the html and css part as you have seen in the video. Here is some link which may help you to understand.
      stripe.dev/elements-examples/fr/
      stripe.com/docs/stripe-js

    • @jennlagarde
      @jennlagarde 4 ปีที่แล้ว

      @@codewithjay Thanks again! I found my problem. Just adding a locale when we write the publishable key. Like this : const stripe = Stripe('pk_test_51HkRBCIYWAaBgiRPucp37PR7JZ8xp8y7gwQuFX7vFNapH4z8VR6Py6RAlAvjoWS2mVZKsmVArFoAYJS2CqwG4EDV00WYc7Rzwu', {
      locale: 'fr'
      });

  • @Попробуйповторить-е7з
    @Попробуйповторить-е7з 3 ปีที่แล้ว

    Thank you

  • @ronsivan93
    @ronsivan93 4 ปีที่แล้ว

    Nice tutorial, when are you going to upload the backend tutorial?

    • @codewithjay
      @codewithjay  4 ปีที่แล้ว +3

      Thanks a lot for appreciation :)
      Here is the Backend Source code you can set up your own server to handle transactions. Mostly I will post backend tutorial in December only along with the DevOps concept to setup CICD microservices on the cloud platform for a production server. It will be a complete series from Scratch to the Production level. Stay tuned to my channel for more interesting topics.
      github.com/codergogoi/Payment_Gateway_React_Native

    • @ronsivan93
      @ronsivan93 4 ปีที่แล้ว

      @@codewithjay Ok, I will be looking forward to it!
      Also, I have a simple question:
      When you are testing and performing transactions in your simulator, are you really trasferring real money between bank accounts? Or is it some test mode?

    • @codewithjay
      @codewithjay  4 ปีที่แล้ว +2

      I am doing on test Mode. Test Card Number is (4242 4242 4242 4242 12/21 123). Because you need to verify you identify along with Tax Details with Stripe to make live payment / Actual payment with your Physical Credit or Debit Card. Once your test mode is working perfectly you can switch you account to live mode which is giving you an additional security page after entered card details. It will handled by stripe itself inside browser.
      Thanks and Stay tuned to my channel :)

  • @moscripts
    @moscripts 3 ปีที่แล้ว

    please i'm trying to know if an app that implements it's payment feature through webview like the one in this video, would not be rejected when published as an ios app

    • @codewithjay
      @codewithjay  3 ปีที่แล้ว +1

      Hi Kelechi,
      Thank you for writing. It will always depend on type of application features. Example if you wish to collect payment against of monthly, Yearly subscription model or some features like membership, pro version, unlock some features then definitely this is not a right choice. In such case you should implement Apple or google inApp purchase model.
      But in the tutorial we are representing the payment option for E-Commerce model only to products, like Clothing, Foods, Groceries, Flight, Hotel Tickets and other related products only. So this will fairly comply Apple or google payment policy.
      I hope above information will you.
      Cheers!

    • @deliocoder8822
      @deliocoder8822 3 ปีที่แล้ว

      ​@@codewithjay Thanks for the information! I was looking a way to implement some premium functionalities for my app and now I have the ideas clear.

  • @abdulhaseeb7081
    @abdulhaseeb7081 4 ปีที่แล้ว

    It is a great tutorial! I just want to ask that If I run it without test mode and I do payment from my app, then how the app holder will receive money?

    • @codewithjay
      @codewithjay  4 ปีที่แล้ว +1

      Dear Abdul,
      the payment system is certainly working in different way. First of all you need to verify your identity and tax information by submitting some documents and once it is approved you can switch to live mode. There is some settings on dashboard where you need to provide your bank account details and you can set the payout schedule for your transactions. It will deposit into the provided account after deduct payment gateway Share (some % of transactions). Different payment gateway has different rules :) I hope it will help you.
      Thank you stay tuned to my channel for more updates.

    • @abdulhaseeb7081
      @abdulhaseeb7081 3 ปีที่แล้ว

      @@codewithjay Thankyou Got It :)

  • @amaniamani3481
    @amaniamani3481 3 ปีที่แล้ว

    do have an idea why I get an empty white screen when submit the form ? thanks

    • @codewithjay
      @codewithjay  3 ปีที่แล้ว

      Make sure you're using your own private and public keys which are available on your stripe account. The key is used in the project is already deleted from the dashboard for security reasons.
      Make sure you have set up the following.
      Best way:
      1. Create your own Stripe account get verified from Stripe
      2. Setup your own backend server to handle transactions.
      2. Switch to test mode your account
      3. Use the test public key on app & use the secret key on Backend running on nodejs.
      Here is the link of the backend: github.com/codergogoi/Payment_Gateway_React_Native
      Once test mode is working perfectly. Switch your account to live mode and make sure you are changing the base URL accordingly.
      Hope above will help you.
      Cheers!

    • @poojaelectronics9382
      @poojaelectronics9382 3 ปีที่แล้ว

      @@codewithjay I have got same error, I have change both keys but it give me blank screen after pressing submit button, lease help me out

  • @ayodeleayoola9644
    @ayodeleayoola9644 4 ปีที่แล้ว

    Can you include payment gateway in the food delivery app you built?

    • @codewithjay
      @codewithjay  4 ปีที่แล้ว

      Yes, we will add stripe on that. In coming episodes you can see that. Stay tuned to my channel for more updates.

  • @MrMartin1418
    @MrMartin1418 3 ปีที่แล้ว

    hi, when i change the test key, to publishable key, the card cannot be viewed correctly. what is the problem? thanks!

    • @codewithjay
      @codewithjay  3 ปีที่แล้ว

      Hey Buddy, Thank you for writing. You need to replace your live publishable key on the "PaymentView.js" file line number 6: const STRIPE_PK = 'pk_live_XXX.....your_key'. It can be solved using live key with the baseURL.
      Make sure you have use the live secret key on server side also then only your payment will go through. Mismatch key is leading to error of initialization of sdk may behave white screen or card view will behave differently. Rest of all available on stripe documentation page.
      Cheers!

    • @Drej991
      @Drej991 3 ปีที่แล้ว

      @@codewithjay Hi, your video helped me a lot. But I'm also facing an issue with the live key. I'm not getting stripe elements like I was on the test and of course, the stripe is not working. Can you explain to me more about baseURL? Is there any way to run this using just the client side? Because BE doesn't support me with anything except this live key and API which I am calling after I get token from the stripe.

  • @kamalCode
    @kamalCode 4 ปีที่แล้ว

    Sir, plz how to deploy app on digital ocean cloud hosting. Plz cloud hosting server setup tuotorials for new developers. What thing should be consider for before hosting app on server

    • @codewithjay
      @codewithjay  4 ปีที่แล้ว

      Month of November I will post backend series where I will cover DevOps. Hopefully you can get a picture of all cloud tech setup and deploy products servers right there. Stay tuned to get updates.
      Thanks

  • @abdulwahabaslam7050
    @abdulwahabaslam7050 4 ปีที่แล้ว

    Stripe is not working on live mode can you tell me why ???

    • @codewithjay
      @codewithjay  4 ปีที่แล้ว +2

      Hi AbdulWahab,
      Thank you for writing to me. Seems your sentence is interrogating me! :)
      I am just helping people spending some of my personal time. If you share the issue or logs maybe I can suggest possibly a best solution to get it done
      Make sure you have set up the following.
      1. Setup your own backend server to handle transactions.
      2. Get approval from Stripe by verifying your identity and once verified your identity switch it to live mode.
      3. Now use the live credential on both Client and Server where it is required as suggested on source code.
      if you did the above and facing some trouble you can find the exact error code and reason on the stripe website.
      you can check the below. If still, you are facing trouble drop an email (codergogoi@gmail.com) to me describing your issues and providing the logs.
      stripe.com/docs/api
      stripe.com/docs/error-codes
      Cheers!

    • @abdulwahabaslam7050
      @abdulwahabaslam7050 3 ปีที่แล้ว

      @@codewithjay thanks for reply

  • @immadahmad7108
    @immadahmad7108 3 ปีที่แล้ว

    I am getting a network error. Any Solution?

    • @immadahmad7108
      @immadahmad7108 3 ปีที่แล้ว

      Resolved it was because of localhost address error.

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

      @@immadahmad7108 how you solve that ... kindly tell ....because I have same error

  • @marketingadvices9420
    @marketingadvices9420 4 ปีที่แล้ว

    I get error 500 why ?

    • @codewithjay
      @codewithjay  4 ปีที่แล้ว +2

      You need to setup your own backend for handle transactions and specifically use your own stripe account credentials to work for you. For both App & Backend, Otherwise you will not receive response. I have used temporary credential to show how it works which is already expired.
      Best way:
      1. Create your own Stripe account get verified from Stripe
      2. Switch to test mode your account
      3. Use the test public key on app & use the secret key on Backend running on nodejs. Here is the link of the backend:
      github.com/codergogoi/Payment_Gateway_React_Native
      4. Use test card to get success result
      keep smile :)

    • @deepaksingh-kb1ot
      @deepaksingh-kb1ot 3 ปีที่แล้ว

      :)@@codewithjay

  • @Abhishekmishra-du3nw
    @Abhishekmishra-du3nw 4 ปีที่แล้ว

    Online food delivery part3

    • @codewithjay
      @codewithjay  4 ปีที่แล้ว +1

      Coming weekend I will post next two episodes stay tuned to my channel for get updates.
      Thanks