<?php $obj_membership_payment = new Gmgt_membership_payment(); $active_tab = isset($_REQUEST['tab']) ? $_REQUEST['tab'] : 'paymentlist'; if (isset($_POST['add_fee_payment'])) { //POP up data save in payment history if ($_POST['payment_method'] == 'Paypal') { require_once GMS_PLUGIN_DIR . '/lib/paypal/paypal_process.php'; } else { $result = $obj_membership_payment->add_feespayment_history($_POST); if ($result) { wp_redirect(home_url() . '?dashboard=user&page=membership_payment&message=1'); } } } if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'success') { ?> <div id="message" class="updated below-h2 "> <p> <?php _e('Payment successfully', 'school-mgt'); ?> </p></div> <?php } if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'ipn') { $trasaction_id = $_POST["txn_id"]; $custom_array = explode("_", $_POST['custom']); $feedata['mp_id'] = $custom_array[1]; $feedata['amount'] = $_POST['mc_gross_1']; $feedata['payment_method'] = 'paypal';