Skip to main content

Razorpay Payment Gateway Ko Codeigniter Website Me Kaise Integrate Kare

Razorpay  payment Gateway Integration in codeigniter


Hello Friends Ajj Me Apko Btaunga Ki Aap Kis Parkar Apne Codeignitor Website Me Razorpay Payment Gateway Integrate Kar Sakte Ho.
Steps-
·         Sabse Pehle Aap Codeignitor Ko Open Karke   Wanha  Application  Folder Open Kijiye Ab Application Folder Ke Ander View Folder Open Kijiye
·         Ab View Folder Me home.php Name Se Ek File Create Kar Lijiye
·         Ab us home.php File Me Niche Diya Gya Code Paste Karke Save Kar Dijiye.

home.php  in view folder-


<br>

<br>

<br>

<center>



<html>

<head>





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



<script>

function loadDoc() {

  var xhttp;

  if (window.XMLHttpRequest) {

    // code for modern browsers

    xhttp = new XMLHttpRequest();

    } else {

    // code for IE6, IE5

    xhttp = new ActiveXObject("Microsoft.XMLHTTP");

  }

  xhttp.onreadystatechange = function() {

    if (this.readyState == 4 && this.status == 200) {

      document.getElementById("demo").innerHTML = this.responseText;

    }

  };

  xhttp.open("GET", "config.php", true);

  xhttp.send();

}

</script>

</head>

<form action="" method="POST">

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

<script

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

    data-key="rzp_test_U0eIdyQGgrjflX"

    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>





<?php

echo "<pre>";

print_r($_POST);

die;

?>



</center>

·         Ab Apko Controller Folder Open Karke  Wanha Ek Controller home.php Create Karna Hai
·         home.php in controller folder
Ab Aap Niche Diye Gye Code ko home.php in Controller Folder Me Paste Karke Save Kar Dijiye.


home.php in controller folder-



<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');



class Home extends CI_Controller {



/**

* Index Page for this controller.

*

* Maps to the following URL

* http://example.com/index.php/welcome

* - or -

* http://example.com/index.php/welcome/index

* - or -

* Since this controller is set as the default controller in

* config/routes.php, it's displayed at http://example.com/

*

* So any other public methods not prefixed with an underscore will

* map to /index.php/welcome/<method_name>

* @see http://codeigniter.com/user_guide/general/urls.html

*/

public function index()

{

                $this->load->view('header');

$this->load->view('home');

}

     }



/* End of file welcome.php */

/* Location: ./application/controllers/welcome.php */

    Ab Apko Route Set Karna Hai Iske Liye Aap Apne
·         Config Folder Open Kijiye Wanha route.php File Open Kijiye  And Wanha

$route['default_controller'] = "home";
$route['404_override'] = '';

·         Default _controller home set kar lijiye.
·         Ab aap ise save kar dijiye.

 Youtube video link-https://youtu.be/9A8Ij76hWQQ
Is Parkar Apka Rajorpay Payment Gateway Codeigneter Me Integrate Ho Jayega.
Agar Apko Koi Be Problem A Rhe Hai To Aap Comment Section Me Puch Sakte Hai Me Apki Help Karunga
Thank You
Team Gajabwap Web In Hindi

Comments

  1. nice information sir mujhe apke Blog ki ek bat bhut achi lagti hai aap mostly sbhi post ka demo link De dete Ho

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Download Vimeo Thumbnail With PHP

Vimeo Thumbnail Downloader Tool – Vimeo Video Ka Thumbnail Download Karein Aaj ke is tutorial mein hum Vimeo Thumbnail Downloader Tool ke baare mein jaanenge. Is tool ki help se hum Vimeo video URL se us video ki thumbnail image obtain kar sakte hain. Agar aap PHP, Web Development, HTML, CSS aur Online Tools banana seekh rahe hain, to ye ek useful PHP project example hai. Vimeo Thumbnail Downloader Kya Hai? Vimeo Thumbnail Downloader ek simple tool hai jisme user Vimeo video ka URL enter karta hai. Tool Vimeo video ID ko identify karta hai aur available thumbnail image ko display karta hai. Example Vimeo URL: https://vimeo.com/389063954 Is URL mein: 389063954 Vimeo video ID hai. Vimeo Thumbnail Downloader Kaise Work Karta Hai? Is PHP script mein mainly do functions use kiye gaye hain: 1. getVimeoId() Ye function Vimeo URL se video ID find karta hai. 2. getVimeoThumb() Ye function Vimeo video ID ke basis par thumbnail information retrieve karta hai aur available thumbnail...

How To Create Contact Form With Validation-Php & Html

How To Create Contact Form - Hello Friends Ajj Me Apko Btaunga   Ki Kis Prakar   Ham Apni Website Ke Liye Contact Form Bnana Sakta Hai.( By Using   Php Contact Form With Validation Script ) Contact Form Hmare Website Ke Liye Bhut He Jrruri Hota Hai.Contact Form Ke Help Se He User Apna Message Website Owner(Admin) Ko Bhej Sakte Hai. Ajj Me Apko Btane Wala Hu Ki Kis Parkar Ham Contact Form Banakar Apne Website Me Add Kar Sakte Hai Or Apni Website Ke Liye Contact Form Bana Sakte Hai Is Contact Form Me   Ham Php Mail Function() Ka Use Karege . Ab Jab Be Koi User Contact Form Me Apni Information ,Message Details Fill Karke Submit Karega To Uski Sare Information Website Admin Ke Email Id Par A Jaiyegi Jo Be Admin Dwara   Niche Diye Gye Code Me Setup Ki Hogi. Used Language- ·          HTML ·          Jquery ·          Php ...

How To Send Sms From Website Using Php-Textlocal SMS

Hello Friends Ajj Me Apko Btaunga Ki Kis Prakar Aap Apni Website Me Free Sms Send Ka Option Integrate Kar Sakte Ho. Bulk sms in India-Best company Iske Liye Apko Sabse Pehle   Https://Www.Textlocal.In/Signup Par Signup Karke Account Create Karna Hai.Ye Ek Achi bulk sms provider company hai ·          Account Create Hone Ke Bad Aap Apna Username And Password Enter Karke Apne Dashboard Me Login Ho Jaiye( textlocal login) ·          Yanha Apko Text Local Company Dwara 10 Meassge Free Testing Ke Liye Diye Jayege ·          Aap Sms Plan Buy Kar Sakte Ho Is Company Dwara Bhut He Kam Prize Me Sms Pakage,plan provide  Kiye Jate Hai Textlocal Price Plans –  index.php <?php if(isset($_POST['code']) &&  isset($_POST['mobile'])){ // Authorisation details. $username = "enter your textlocal account email id here"; $hash = "...