Skip to content

Commit

Permalink
Fixed small bugs on admin paypal extension
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Jan 20, 2024
1 parent 28209bc commit d69998a
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions upload/admin/controller/extension/payment/paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -1835,28 +1835,6 @@ public function install(): void {
$this->model_setting_setting->editSetting('paypal_version', $setting);
}

/**
* Uninstall
*
* @return void
*/
public function uninstall(): void {
$this->load->model('extension/payment/paypal');

$this->model_extension_payment_paypal->uninstall();

$this->load->model('setting/event');

$this->model_setting_event->deleteEventByCode('paypal_order_info');
$this->model_setting_event->deleteEventByCode('paypal_header');
$this->model_setting_event->deleteEventByCode('paypal_extension_get_extensions');
$this->model_setting_event->deleteEventByCode('paypal_order_delete_order');

$this->load->model('setting/setting');

$this->model_setting_setting->deleteSetting('paypal_version');
}

/**
* Order Info Before
*
Expand Down Expand Up @@ -2409,7 +2387,7 @@ public function disableSubscription(): void {
$order_id = 0;
}

$this->model_extension_payment_paypal->editOrderRecurringStatus($order_id, 2);
$this->model_extension_payment_paypal->editOrderSubscriptionStatus($order_id, 2);

$json['success'] = $this->language->get('success_disable_subscription');
}
Expand Down

0 comments on commit d69998a

Please sign in to comment.