Skip to content

Commit

Permalink
Revert "added plugin metrics tracker"
Browse files Browse the repository at this point in the history
This reverts commit 6a04cf5.
  • Loading branch information
lukman-paystack committed Jul 22, 2019
1 parent 6a04cf5 commit 863c21e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 70 deletions.
Binary file removed .DS_Store
Binary file not shown.
Binary file removed paystack/.DS_Store
Binary file not shown.
Binary file removed paystack/controllers/.DS_Store
Binary file not shown.
42 changes: 0 additions & 42 deletions paystack/controllers/front/class-paystack-plugin-tracker.php

This file was deleted.

19 changes: 0 additions & 19 deletions paystack/controllers/front/paystacksuccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
/**
* @since 1.5.0
*/

include_once dirname(__DIR__) . "class-paystack-plugin-tracker.php";
class PaystackPaystacksuccessModuleFrontController extends ModuleFrontController
{
/**
Expand Down Expand Up @@ -77,23 +75,6 @@ public function initContent()
$status = 'failed';
Tools::redirect('404');
} else {

//PSTK - Logger
$mode = Configuration::get('PAYSTACK_MODE');
$test_pk = Configuration::get('PAYSTACK_TEST_PUBLICKEY');
$live_pk = Configuration::get('PAYSTACK_LIVE_PUBLICKEY');
if ($mode == '1') {
$key = $test_pk;
}else{
$key = $live_pk;
}
$key = str_replace(' ', '', $key);
$pstk_logger = new presta_1_7_paystack_plugin_tracker('presta-1.7', $key );
$pstk_logger->log_transaction_success($txn_code);
// PSTK Logger done -----------------



$email = $verification->data->customer->email;
$date = $verification->data->transaction_date;
$total = $verification->data->amount/100;
Expand Down
9 changes: 0 additions & 9 deletions paystack/views/templates/front/embedded.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@
amount: '{$total_amount}',
ref: '{$reference}',
currency: '{$currency}',
metadata:{
"custom_fields":[
{
"display_name":"Plugin",
"variable_name":"plugin",
"value":'presta-1.7'
}
]
}
callback: function(response){
$( "#paystack_form" ).submit();
},
Expand Down

0 comments on commit 863c21e

Please sign in to comment.