){if($setting['response'][0]['favicon'] == )
" alt="Merchant Logo" class="merchant-logo">
$_GET['invoice_number']);
$url = curl_init($base_url.'/transaction-status');
curl_setopt($url,CURLOPT_HTTPHEADER, $header);
curl_setopt($url,CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($url,CURLOPT_RETURNTRANSFER, true);
curl_setopt($url,CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($url,CURLOPT_POSTFIELDS, $body);
curl_setopt($url,CURLOPT_FOLLOWLOCATION, 1);
$responseData=curl_exec($url);
curl_close($url);
$decode_response = json_decode($responseData, true);
if($decode_response['status_code'] == "200" && $decode_response['status'] == "success"){
if($decode_response['data']['trx_status'] == "successful" || $decode_response['data']['trx_status'] == "Success"){
$verified_order_id = $decode_response['data']['invoice_number'];
$verified_trx_id = $decode_response['data']['trx_id'];
$payer_mobile_no = $decode_response['data']['payer_mobile_no'];
$check_transactionid = pp_check_transaction_exits($verified_trx_id);
if($check_transactionid['status'] == false){
if(pp_set_transaction_byid($payment_id, $plugin_slug, $plugin_info['plugin_name'], $payer_mobile_no, $verified_trx_id, 'completed')){
echo '';
}
}else{
?>
Transaction ID already exits
Transaction
rand(),
'currency' => 'BDT',
'payment_amount' => $transaction_amount,
'reference' => $payment_id,
'cust_name' => $transaction_details['response'][0]['c_name'],
'cust_phone' => $cust_phone,
'cust_email' => $cust_email,
'cust_address' => "Bangladesh",
'pay_with_charge' => $settings['pay_with_charge'],
'callback_url' => getCurrentUrl(),
'checkout_items' => $settings['checkout_items'],
'merchantId' => $settings['merchant_id'],
'password' => $settings['merchant_password']
);
curl_setopt_array($curl, array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => $postFields,
));
$response = curl_exec($curl);
curl_close($curl);
$response_curl = json_decode($response, true);
if(isset($response_curl['payment_url'])){
echo '';
}else{
?>