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:
<?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; } ?>