You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today.


Dynamic UPI QR code generate

Direct receive amount in your bank account at zero (0) cost. In this way you will generate your Dynamic QR Code with the help of your upi address and amount. For example: you have multiple products on your website, now, you want to provide UPI QR as per product amount; whereas this qr will be genrate as automatically. Please follow the steps below:

  1. Step 1: Make sure, you have to provide required parameteres:
    • i. payee_name: This is used for receivers bank account holder name verification.
    • ii. upi_id: This is used for receivers upi address, like as test@ybl.
    • iii. amt: Please provide decimal format amount, like as 10.00
    • iv. tid: This is used for transaction id
  2. Step 2: Generate URL: https://fineweb.in/dynamicqr/generate-qr
  3. Step 3: Request QR Code: Send mentioned parameteres as mention step 1 with the help of url step 2
  4. Step 4: Sample request using curl::
        
    <?php
        
        $url = 'https://fineweb.in/dynamicqr/generate-qr'; // qr code generate url
        
        $post_data['payee_name'] = 'Test Company Pvt Ltd'; // bank account holder name
        $post_data['upi_id'] = 'test@ybl'; // upi id / vpa
        $post_data['amt'] = '10.00'; // enter amount
        $post_data['tid'] = 'QRSYATBA655556757HGF'; // generate your transaction id
        
        // start curl initiate
        $ch=curl_init();
        
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_URL, $url);
        
        // transfer all data using POST method
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
        
        $response = curl_exec($ch);
        
        curl_close($ch);
        
        // return data as json format
        // print_r($response); // print response data 
        
        // decode the encoded data
        $json_decode = json_decode($response);
        
        // if, response msg is true, then show qr code url, 
        if($json_decode->msg == true){
        
            echo $json_decode->img_url; // img url displayed, you can use it in your html code for img src link
        
        }else{ // show error
            echo $json_decode->msg; 
        }
    ?>
        
    
  5. N.B.- This is developed only for manual checkout proccessing, not for automation checking payment status or not for intent payment app. For example: you have a website, now; customers visit your website and interested to buying a product which amount is 599.00, then this customer click on buy button, after that; our api will provide a UPI base QR code, whereas customer download or scan this QR and manually provie this transaction UTR for payment confirmation, end of this step is admin / manager / account check and confirm this payment.