This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function Complete(Request $request) | |
| { | |
| // Now verify the signature is correct . We create the private function for verify the signature | |
| $signatureStatus = $this->SignatureVerify( | |
| $request->all()['rzp_signature'], | |
| $request->all()['rzp_paymentid'], | |
| $request->all()['rzp_orderid'] | |
| ); | |
| // If Signature status is true We will save the payment response in our database |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- // Let's Click this button automatically when this page load using javascript --> | |
| <!-- You can hide this button --> | |
| <button id="rzp-button1" hidden>Pay</button> | |
| <script src="https://checkout.razorpay.com/v1/checkout.js"></script> | |
| <script> | |
| var options = { | |
| "key": "{{$response['razorpayId']}}", // Enter the Key ID generated from the Dashboard | |
| "amount": "{{$response['amount']}}", // Amount is in currency subunits. Default currency is INR. Hence, 50000 refers to 50000 paise | |
| "currency": "{{$response['currency']}}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Controllers; | |
| use Illuminate\Http\Request; | |
| use App\Http\Controllers\Controller; | |
| use Razorpay\Api\Api; | |
| use Illuminate\Support\Str; | |
| class PaymentController extends Controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body{ | |
| color: #2f2d2d; | |
| font-family: 'Open Sans', sans-serif !important; | |
| font-size: 14px; | |
| font-weight: 400; | |
| line-height: 1.2; | |
| letter-spacing: .25px; | |
| overflow: hidden; | |
| overflow-y: auto; | |
| -webkit-font-smoothing: antialiased; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Payment</title> | |
| <!-- Add stylesheet --> | |
| <link href="{{asset('css/style.css')}}" rel="stylesheet"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This route is for payment initiate page | |
| Route::get('/payment-initiate',function(){ | |
| return view('payment-initiate'); | |
| }); | |
| // for Initiate the order | |
| Route::post('/payment-initiate-request','PaymentController@Initiate'); | |
| // for Payment complete | |
| Route::post('/payment-complete','PaymentController@Complete'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| composer require razorpay/razorpay:2.* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'config.php'; | |
| $client = new GuzzleHttp\Client(['base_uri' => 'https://api.zoom.us']); | |
| $db = new DB(); | |
| $arr_token = $db->get_access_token(); | |
| $accessToken = $arr_token->access_token; | |
| $meetingId = $_GET['meetingid']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'config.php'; | |
| function get_meetings() { | |
| $client = new GuzzleHttp\Client(['base_uri' => 'https://api.zoom.us']); | |
| $db = new DB(); | |
| $arr_token = $db->get_access_token(); | |
| $accessToken = $arr_token->access_token; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'config.php'; | |
| function create_meeting() { | |
| $client = new GuzzleHttp\Client(['base_uri' => 'https://api.zoom.us']); | |
| $db = new DB(); | |
| $arr_token = $db->get_access_token(); | |
| $accessToken = $arr_token->access_token; | |