Commit 39a1516a by Muhammad Usman

test payment

parent 3b2401ed
Pipeline #300 passed with stage
in 0 seconds
...@@ -47,14 +47,20 @@ function use_lms_template($data) ...@@ -47,14 +47,20 @@ function use_lms_template($data)
} else if(is_page('learning-management')) { } else if(is_page('learning-management')) {
return __DIR__ . '/template/management.php'; return __DIR__ . '/template/management.php';
} else if(is_page('lms-notify')) { } else if(is_page('lms-notify')) {
$id = $_GET['order_id']; $id = $_GET['order_id'];
$content = get_the_content($id); $content = get_the_content($id);
$d = 'DATA\n';
$d = $content . json_encode($_GET); $d = $content . json_encode($_GET);
$d .= json_encode($_POST); $d .= json_encode($_POST['paymentresponse']);
$file = 'file.txt';
file_put_contents($file, $d);
array( array(
'ID' => $id, 'ID' => $id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment