Skip to content

Commit e7784e4

Browse files
updated host IP to subdomain and removed trailing php tag
1 parent c9dfe3e commit e7784e4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

public/class-paystack-forms-public.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,7 @@ function kkd_pff_paystack_confirm_payment()
18081808
if ($result == 'success') {
18091809
///
18101810
//Create Plan
1811-
$pstk_logger = new paystack_plugin_tracker('pff-paystack', Kkd_Pff_Paystack_Public::fetchPublicKey());
1811+
$pstk_logger = new kkd_pff_paystack_plugin_tracker('pff-paystack', Kkd_Pff_Paystack_Public::fetchPublicKey());
18121812
$pstk_logger->log_transaction_success($code);
18131813
$enabled_custom_plan = get_post_meta($payment_array->post_id, '_startdate_enabled', true);
18141814
if ($enabled_custom_plan == 1) {

public/class-paystack-plugin-tracker.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
class paystack_plugin_tracker {
2+
class kkd_pff_paystack_plugin_tracker {
33
var $public_key;
44
var $plugin_name;
55
function __construct($plugin, $pk){
@@ -13,7 +13,7 @@ function __construct($plugin, $pk){
1313

1414
function log_transaction_success($trx_ref){
1515
//send reference to logger along with plugin name and public key
16-
$url = "http://46.101.87.70:4553/log/charge_success";
16+
$url = "https://plugin-tracker.paystackintegrations.com/log/charge_success";
1717

1818
$fields = [
1919
'plugin_name' => $this->plugin_name,
@@ -36,5 +36,3 @@ function log_transaction_success($trx_ref){
3636
// echo $result;
3737
}
3838
}
39-
40-
?>

0 commit comments

Comments
 (0)