</td> <td class="dataTableContent"><?php echo $entry['date']; ?> </td> </tr> <?php } ?> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require DIR_WS_INCLUDES . 'footer.php'; ?> <!-- footer_eof //--> </body> </html> <?php require DIR_WS_INCLUDES . 'application_bottom.php'; rpSession::cleanRpSession();
/** * Is called when the order is saved to the db * here we send the PAYMENT_CONFIRM call to RatePAY */ public function after_process() { global $insert_id; $transactionId = rpSession::getRpSessionEntry('transactionId'); $transactionShortId = rpSession::getRpSessionEntry('transactionShortId'); if (!empty($transactionId)) { $result = $this->_paymentConfirm($transactionId, $transactionShortId, $insert_id); if (!array_key_exists('error', $result)) { $this->_saveRpOrder(rpSession::getRpSessionEntry('rpOrder'), $insert_id); $this->_setRatepayOrderPaid($insert_id); rpSession::cleanRpSession(); } else { rpSession::cleanRpSession(); $error = urlencode(constant(strtoupper($this->code) . '_ERROR')); xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . $error, 'SSL')); } } }