How To Integrate Razorpay Payment Gateway In Php-Full Guide In Hindi


Best Payment Gateway In India

Hello Friends Ajj Me Apko Btaunga Ki Kis Prakar Ham Razorpay Payment Gateway Integration Karege Php Me.

Sabse Pehle  3 File Create Kijiye-

·         Index.Php
·         Config.Php
·         Charge.Php

index.php---

<?php

require_once('config.php');

?>

<html>

<head>





<meta name="viewport" content="width=device-width">

</head>

<body>

<form action="charge.php" method="POST">

<!-- Note that the amount is in paise = 50 INR -->

<script

    src="https://checkout.razorpay.com/v1/checkout.js"

    data-key="<?php echo $razor_api_key; ?>"

    data-amount="5000"

    data-buttontext="Pay with Razorpay"

    data-name="sonuwap.ga"

    data-description="this is demo"

    data-image="https://your-awesome-site.com/your_logo.jpg"

    data-prefill.name="Harshil Mathur"

    data-prefill.email="support@razorpay.com"

    data-theme.color="#F37254"

></script>

<input type="hidden" value="Hidden Element" name="hidden">

</form>

</body>

</html>





Config.php-


<?php


$razor_api_key= "enter your keyid here";

?>




Charge.php



<?php

echo "<pre>";

print_r($_POST);

die;

?>


Yanha Apko Index.Php And Config.Php Me Kuch Changes Karne Hai Jiske Bad Apki Integration Completely Setup Ho Jayegi Aur User Apko Payment Kar Payega.


Index.Php-
Dataname-Yanha Aap Apne Website Ka Name Likhe.
Data Description –Yanha Payment Ka Purpose,Description Likhe.

Config.Php-
Yanha Aap Apni Account Se Apko Razor Pay Api Key Milegi Us Api Key Ko Yanha Enter Kijiye



Api Key Kese Check/Generate Kare-

Sabse Pehle Aap Razorpay Par Account Create Kar Lijiye. Agar Aap Razorpay Par Account Banana Chahte Hai To Ye Post Pade

·         Username And Password Enter Karke Apne Razorpay Account Me Login Kar Lijiye
·         Login Ke Bad Aap Dashboard Me Redirect Ho Jaoge Yanha Setting Open Kare
api key

·         Ab Api Key Par Click Kare
·         Ab Yanha Se Apni Api Key Copy Karle Yanha Apke Pass Regenrate Ka Option Be Available Hai Iska Use Karke Aap Api Key Regenerate Be Kar Sakte Hai

Copy Api key

  Note-Yanha Aap  4111 1111 1111 1111
Card Ka Use Kijiye Payment Karne Ke Liye
Expiry Date – Yanha Koi Be Future Date Enter Kar Lijiye
Cvv-Yanha 123 Enter Kijye


Is Parkar Ap Apni Website Me Easily RazorPay Payment Integrate Kar Payege  Aur Customer Ki Payment Accept Kar Paoge.
Me Ummid Karta Hu Ki Apko Mere Ye Post Achi Lagi Hogi Agar Apko Koi Be Swal Ho To Ap Mujse Comment Section Me Puch Sakte Ho Me Apki Puri Sahayata Karne Ki Koshish Karunga
Thank You
Team Gajabwap Web In Hindi
Also Read-
Previous
Next Post »

4 comments

Click here for comments
Anonymous
admin
28 April 2018 at 05:16 ×

nice information sir apki website me mujhe bhut kuch sikhne ko millla thanks sir

Reply
avatar
ssss123456
admin
19 June 2018 at 03:39 ×

very nice information sir this is very helpful for me keep it up bro
www.winfo11.tk

Reply
avatar
Shirish
admin
25 October 2018 at 10:41 ×

Dear Bhupender, Nice Information. However, I have not tried it yet. I will try it and then come back to you.

Reply
avatar
php sms
admin
23 August 2019 at 01:34 ×

Thanks for sharing!! Nice article

Reply
avatar
Thanks for your comment