$txn->currency_code = $currencyCode; $txn->order_time = $orderTime; $txn->server_order_time = date('Y-m-d H:i:s'); $txn->session_expire = RJSES::expireDateTime(); // $txn->session_id=session_id(); $txn->pending_reason = $pendingReason; $txn->reason_code = $reasonCode; $txn->fee_amount = $feeAmt; $txn->tax_amount = $taxAmt; $txn->exchange_rate = $exchangeRate; $txn->save(); //send an email to the client try { $item = new RJDGSHOP($txn->shop_id); if ($txn->isComplete($item)) { $email_sent = RJDGPP::sendEmail($txn, $item); } unset($item); } catch (Exception $e) { rjdump($e); } } //loadBy ?> <html> <script> alert("Payment Successful"); // add relevant message above or remove the line if not required window.onload = function(){ /* if(window.opener){