Razorpay Payment Gateway Integration in PHP/HTML with DB Integration | Hindi Web Tutorials - Part 1

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024
  • Razorpay Payment Gateway Integration in PHP/HTML with Database Integration | Hindi | Web Tutorials
    Razorpay Payment Gateway Integration with Custom Form Page and Database insertion when the payment is successful.
    Download the Source Code: github.com/adm...
    #razorpay
    #paymentintegration
    #paymentgateway
    #razorpayphp
    #php
    #hindi

Комментарии • 79

  • @GothamCoding
    @GothamCoding  3 года назад +2

    Audio is recorded using Headphone that's why a little noise. Will fix in the next video.

  • @sumedhskulkarni7796
    @sumedhskulkarni7796 2 года назад +3

    Fun fact is I have zero knowledge about PHP but while watching this video I learned PHP too... That's why I am gonna subcribe this channel....

  • @shahnawazakhtar3682
    @shahnawazakhtar3682 2 месяца назад

    very nice after searching many videos

  • @DexterTalha
    @DexterTalha 3 года назад +2

    Useful👌👌👌

  • @sagarsahu9783
    @sagarsahu9783 3 года назад +1

    Very helpful, thank you so much

  • @Enwrs
    @Enwrs 2 года назад +1

    Love to see this

    • @GothamCoding
      @GothamCoding  2 года назад

      Thanks!!

    • @Enwrs
      @Enwrs 2 года назад +1

      @@GothamCoding aapke btane ka tareeka bht kabile tareef aur brief krne ka tareeka 👌

  • @scripterjee
    @scripterjee 3 года назад +1

    What's the difference between automatic.php and manual.php ??
    Can I use automatic, instead of manual ??

    • @GothamCoding
      @GothamCoding  2 года назад

      Yes. Both are good to go, you can find the difference in razorpay.com/docs/payments/payments/capture-settings/#manually-capture-payments

  • @EKSAKARATMAKSHAKTI
    @EKSAKARATMAKSHAKTI 3 года назад +1

    show error ......Parse error: syntax error, unexpected '

    • @GothamCoding
      @GothamCoding  3 года назад

      You have missing opening bracket(

  • @NiteshBreaks
    @NiteshBreaks Год назад +1

    Sir please make a video on Real payment transfer.

  • @wreckedpencils
    @wreckedpencils Год назад +1

    could you please let me know how to add "variable payment option"?

    • @GothamCoding
      @GothamCoding  Год назад

      You can make the input box disabled, or simple use type="hidden" in input field, if you want to set fixed price.

  • @MishraSanjeev359
    @MishraSanjeev359 3 года назад +3

    Localhost/razorpay/pay.php gives some error

    • @MishraSanjeev359
      @MishraSanjeev359 3 года назад +1

      It's working I'm not open my internet connection 😁

    • @GothamCoding
      @GothamCoding  3 года назад

      @@MishraSanjeev359 haha :)

    • @Somnath-je9nd
      @Somnath-je9nd 3 года назад

      @@MishraSanjeev359 what was error

  • @raghurams35
    @raghurams35 2 года назад +1

    Hai ...while i am using....after select automatic and press submit button it shows HTTP Error 405.0 - Method Not Allowed
    ERROR how can i slove that

    • @GothamCoding
      @GothamCoding  2 года назад

      Some problem with your localhost.

  • @TechAlokKushwaha
    @TechAlokKushwaha Год назад +1

    hey gotham bro can you help in a project its could be help in your expenses.

    • @GothamCoding
      @GothamCoding  Год назад

      Sorry, but currently i work full time for a US Product based company, so don't get free time.

  • @theartlover4u
    @theartlover4u 3 года назад +1

    use Razorpay\Api\Api; showing error : Parse error: syntax error, unexpected 'use' (T_USE) . please help me to solve this.

    • @GothamCoding
      @GothamCoding  2 года назад

      Something with your code.
      Download this and change your id and db details for quick setup: github.com/adminazhar/RazorPay-PHP-Integration-with-DB

  • @KrishnaKumar-hw5ds
    @KrishnaKumar-hw5ds 3 года назад +1

    How to Pop a successful or failed Pop up. it not showing any successful or faield or error message, how do we do that please tell me.

    • @GothamCoding
      @GothamCoding  3 года назад

      Check the 2nd part of this video, i have explained there.

  • @rajmishra5630
    @rajmishra5630 3 года назад +1

    very good video.
    bhai ji
    in config.php i hv show currency as INR, hoever in form i m giving a drop down and posting currency variable to pay.php.
    user selects AUD or any other as display currency in form but in config.php display currency is INR , will it make any issue.?
    i want to give user freedom to choose any currency in form.

    • @GothamCoding
      @GothamCoding  3 года назад +1

      The currency, you can check on official documentation, there you will find the proper code to display it and accept it.

  • @VibeLenss
    @VibeLenss 3 года назад +1

    bhai ye error kyu aarha hai.. jitne bhi variavle bnaa rhe hain sbka error yhi aarha hai.. Warning: Undefined array key "donation_amt" in C:\xampp\htdocs
    azorpay1\pay.php on line 17

    • @GothamCoding
      @GothamCoding  3 года назад +1

      This is because the first time the page loads the $_POST and $_GET is empty.
      So you can check
      if(isset($_GET['variablename'])
      then assign the variable.
      Or you can hide the warnings error message:
      error_reporting(E_ERROR | E_PARSE);
      use the above line at start of your page.

    • @VibeLenss
      @VibeLenss 3 года назад +1

      @@GothamCoding thank you bro ❤️

  • @narmathadarling6915
    @narmathadarling6915 2 года назад +1

    Core PHP code executed on Live Mode ?

    • @GothamCoding
      @GothamCoding  2 года назад

      It runs on both Live as well as Test, depending on whose key you created.

    • @narmathadarling6915
      @narmathadarling6915 2 года назад +1

      @@GothamCoding okay and in your video you are not including Razorpay SDK file..so it's optional ?

    • @GothamCoding
      @GothamCoding  2 года назад

      Correct!

  • @rup6901
    @rup6901 2 года назад +1

    How to show the payment I'd in success page?

    • @GothamCoding
      @GothamCoding  2 года назад

      Watch the Part 2, there i have explained it.

  • @DurgeshKumar-gx1bl
    @DurgeshKumar-gx1bl 3 года назад +2

    upload next video with payment fail, success and payment capture ?????

  • @dppancholi
    @dppancholi 2 года назад +1

    One issue is there..
    If you feed mobile / email at index page and pass to pay.php and store in session variable and then you change the value of phone/email at payment page(that appears after clicking pay with Razorpay button) then actually phone and email will be changed but data base will save old one as stored as session variable. Plz see the issue and help

    • @GothamCoding
      @GothamCoding  2 года назад

      Yeah, but the thing is that modal is loading from razorpay and capturing that form value is not possible. But i can take a look if we can do something regarding this.
      Also the form is for our order information only, user can use another email/phone on the razorpay portal but the payment id will be unique so we can track the order status.

    • @dppancholi
      @dppancholi 2 года назад +1

      @@GothamCoding thx for the reply..But I got the answer meanwhile and implement too..thx

  • @ishitagupta7652
    @ishitagupta7652 2 года назад +1

    It's giving deprecated in razorpay /src/resource.php
    Any clue how can we solve it
    Thanks in advance

    • @ishitagupta7652
      @ishitagupta7652 2 года назад

      When I clicked automatic checkout demo

    • @GothamCoding
      @GothamCoding  2 года назад

      Its around 1 years since i pushed the code, so there may be some deprecated function with PHP8/8.1.
      What's the current php version are you using? Or XAMPP/WAMP Version?

    • @ishitagupta7652
      @ishitagupta7652 2 года назад +1

      @@GothamCoding my error got resolved yesterday,thanks for replying though!

    • @pratikzajam799
      @pratikzajam799 2 года назад

      @@ishitagupta7652 getting same error. How did u solved it?

    • @shwetakharade2313
      @shwetakharade2313 Год назад

      can u please tell me how did u solve it

  • @ankita3650
    @ankita3650 Год назад +1

    Hello sir,
    I had a doubt,
    When I give localhost/razorpay-api/pay.php,I am getting a fatal error like this -
    Fatal error: Uncaught Razorpay\Api\Errors\BadRequestError: The api secret provided is invalid in C:\xampp\htdocs
    azorpay-api
    azorpay-php\src\Request.php:142 Stack trace: #0 C:\xampp\htdocs
    azorpay-api
    azorpay-php\src\Request.php(109): Razorpay\Api\Request->processError(Array, 'INR', 401, Object(WpOrg\Requests\Response)) #1 C:\xampp\htdocs
    azorpay-api
    azorpay-php\src\Request.php(58): Razorpay\Api\Request->checkErrors(Object(WpOrg\Requests\Response)) #2 C:\xampp\htdocs
    azorpay-api
    azorpay-php\src\Entity.php(92): Razorpay\Api\Request->request('POST', 'api.raz...', Array) #3 C:\xampp\htdocs
    azorpay-api
    azorpay-php\src\Entity.php(20): Razorpay\Api\Entity->request('POST', 'orders/', Array) #4 C:\xampp\htdocs
    azorpay-api
    azorpay-php\src\Order.php(12): Razorpay\Api\Entity->create(Array) #5 C:\xampp\htdocs
    azorpay-api\pay.php(17): Razorpay\Api\Order->create(Array) #6 {main} thrown in C:\xampp\htdocs
    azorpay-api
    azorpay-php\src\Request.php on line 142
    What should I do now sir?
    Can you please tell me the corrections to be made.
    Thanks in advance.

    • @GothamCoding
      @GothamCoding  Год назад

      Can you try with your test api key credentials and see if the message comes.

    • @ankita3650
      @ankita3650 Год назад

      @@GothamCoding okay sir,I will try

  • @user-me2zq1ex9p
    @user-me2zq1ex9p 3 года назад +1

    Bhai pay karte samay upar phone no. Kiska dalte hai ,

    • @GothamCoding
      @GothamCoding  3 года назад

      14:12
      Yaha pe samjhaya hai. Pura video dekhiye samjh aa jayega.
      $contactno variable me store kr skte form se.

  • @ANONYMOUS-gu9fg
    @ANONYMOUS-gu9fg 2 года назад +1

    bhai abb documentation boht change hogya hai please abb vaale documentation pe bana k dikha do

    • @GothamCoding
      @GothamCoding  2 года назад

      Theek hai fir is month try krta hu updated video banane ka.

    • @ANONYMOUS-gu9fg
      @ANONYMOUS-gu9fg 2 года назад

      @@GothamCoding thanks, maine aur bhi videos pe comment kiya tha but reply sirf aapka aaya. tahnks a lot

  • @rahulpatel-bt4ss
    @rahulpatel-bt4ss 3 года назад +1

    can you upload basic bank system website

  • @suraj683
    @suraj683 3 года назад +1

    Hii I want talk to you

    • @GothamCoding
      @GothamCoding  3 года назад

      Yeah sure. Drop a mail on admin@azhark.com or on insta: instagram.com/adminazhar/

  • @iamansohal
    @iamansohal 3 года назад +1

    When we click on Pay, pay.php opens with Pay button, how to edit it?

    • @GothamCoding
      @GothamCoding  3 года назад

      You can update the pay.php with your specific requirement.