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
Audio is recorded using Headphone that's why a little noise. Will fix in the next video.
no problem
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....
very nice after searching many videos
Useful👌👌👌
Very helpful, thank you so much
Glad it was helpful!
Love to see this
Thanks!!
@@GothamCoding aapke btane ka tareeka bht kabile tareef aur brief krne ka tareeka 👌
What's the difference between automatic.php and manual.php ??
Can I use automatic, instead of manual ??
Yes. Both are good to go, you can find the difference in razorpay.com/docs/payments/payments/capture-settings/#manually-capture-payments
show error ......Parse error: syntax error, unexpected '
You have missing opening bracket(
Sir please make a video on Real payment transfer.
could you please let me know how to add "variable payment option"?
You can make the input box disabled, or simple use type="hidden" in input field, if you want to set fixed price.
Localhost/razorpay/pay.php gives some error
It's working I'm not open my internet connection 😁
@@MishraSanjeev359 haha :)
@@MishraSanjeev359 what was error
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
Some problem with your localhost.
hey gotham bro can you help in a project its could be help in your expenses.
Sorry, but currently i work full time for a US Product based company, so don't get free time.
use Razorpay\Api\Api; showing error : Parse error: syntax error, unexpected 'use' (T_USE) . please help me to solve this.
Something with your code.
Download this and change your id and db details for quick setup: github.com/adminazhar/RazorPay-PHP-Integration-with-DB
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.
Check the 2nd part of this video, i have explained there.
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.
The currency, you can check on official documentation, there you will find the proper code to display it and accept it.
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
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.
@@GothamCoding thank you bro ❤️
Core PHP code executed on Live Mode ?
It runs on both Live as well as Test, depending on whose key you created.
@@GothamCoding okay and in your video you are not including Razorpay SDK file..so it's optional ?
Correct!
How to show the payment I'd in success page?
Watch the Part 2, there i have explained it.
upload next video with payment fail, success and payment capture ?????
uploaded. Check the part 2 in the channel.
@@GothamCoding thanks
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
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.
@@GothamCoding thx for the reply..But I got the answer meanwhile and implement too..thx
It's giving deprecated in razorpay /src/resource.php
Any clue how can we solve it
Thanks in advance
When I clicked automatic checkout demo
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?
@@GothamCoding my error got resolved yesterday,thanks for replying though!
@@ishitagupta7652 getting same error. How did u solved it?
can u please tell me how did u solve it
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.
Can you try with your test api key credentials and see if the message comes.
@@GothamCoding okay sir,I will try
Bhai pay karte samay upar phone no. Kiska dalte hai ,
14:12
Yaha pe samjhaya hai. Pura video dekhiye samjh aa jayega.
$contactno variable me store kr skte form se.
bhai abb documentation boht change hogya hai please abb vaale documentation pe bana k dikha do
Theek hai fir is month try krta hu updated video banane ka.
@@GothamCoding thanks, maine aur bhi videos pe comment kiya tha but reply sirf aapka aaya. tahnks a lot
can you upload basic bank system website
No plan for this as of now.
Hii I want talk to you
Yeah sure. Drop a mail on admin@azhark.com or on insta: instagram.com/adminazhar/
When we click on Pay, pay.php opens with Pay button, how to edit it?
You can update the pay.php with your specific requirement.