????

Your IP : 18.116.202.216


Current Path : /home/thenclexdoctor.com/public_html/vendor/instamojo/instamojo-php/
Upload File :
Current File : /home/thenclexdoctor.com/public_html/vendor/instamojo/instamojo-php/main.php

<?php

require_once __DIR__ . '/vendor/autoload.php';

    $instaobj = Instamojo\Instamojo::init('app',[
        "client_id" =>  $_ENV["CLIENT_ID"],
        "client_secret" => $_ENV["CLIENT_SECRET"]
       
    ],true);
 
    
    // $transaction_id = "TEST_".time();
    // var_dump([
    //     "name" => "XYZ",
    //     "email" => "xyz@squareboat.com",
    //     "phone" => "9999999988",
    //     "amount" => 200,
    //     "transaction_id" => $transaction_id,
    //     "currency" => "INR"
    // ]);

    $payment_request = $instaobj->createPaymentRequest([
        'amount'=>10,
        'purpose'=>"Test script"
        ]);
        var_dump($payment_request['id']);
        try{
    $gateway_order = $instaobj->createGatewayOrderForPaymentRequest(
        "292e38e570794fa592ccf74cc84c8fda",
        [
        "name" => "XYZ",
        "email" => "xyz@squareboat.com",
        "phone" => "9999999988",
        // "amount" => 200,
        // "transaction_id" => $transaction_id,
        // "currency" => "INR"
    ]);
        
    var_dump(json_encode($gateway_order));
    }catch(Exception $e){
            print('Error: ' . $e->getMessage());
        }

?>

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...