Skip to content

Commit

Permalink
Fixed some extension payment order statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed May 19, 2024
1 parent aba3644 commit ca74422
Show file tree
Hide file tree
Showing 19 changed files with 148 additions and 148 deletions.
20 changes: 10 additions & 10 deletions upload/admin/controller/extension/payment/firstdata.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,28 +149,28 @@ public function index(): void {
$data['payment_firstdata_auto_settle'] = 1;
}

if (isset($this->request->post['payment_firstdata_order_status_success_settled_id'])) {
$data['payment_firstdata_order_status_success_settled_id'] = (int)$this->request->post['payment_firstdata_order_status_success_settled_id'];
if (isset($this->request->post['payment_firstdata_success_settled_id'])) {
$data['payment_firstdata_success_settled_id'] = (int)$this->request->post['payment_firstdata_success_settled_id'];
} else {
$data['payment_firstdata_order_status_success_settled_id'] = (int)$this->config->get('payment_firstdata_order_status_success_settled_id');
$data['payment_firstdata_success_settled_id'] = (int)$this->config->get('payment_firstdata_success_settled_id');
}

if (isset($this->request->post['payment_firstdata_order_status_success_unsettled_id'])) {
$data['payment_firstdata_order_status_success_unsettled_id'] = (int)$this->request->post['payment_firstdata_order_status_success_unsettled_id'];
if (isset($this->request->post['payment_firstdata_success_unsettled_id'])) {
$data['payment_firstdata_success_unsettled_id'] = (int)$this->request->post['payment_firstdata_success_unsettled_id'];
} else {
$data['payment_firstdata_order_status_success_unsettled_id'] = (int)$this->config->get('payment_firstdata_order_status_success_unsettled_id');
$data['payment_firstdata_success_unsettled_id'] = (int)$this->config->get('payment_firstdata_success_unsettled_id');
}

if (isset($this->request->post['payment_firstdata_order_status_decline_id'])) {
$data['payment_firstdata_order_status_decline_id'] = (int)$this->request->post['payment_firstdata_order_status_decline_id'];
$data['payment_firstdata_decline_id'] = (int)$this->request->post['payment_firstdata_order_status_decline_id'];
} else {
$data['payment_firstdata_order_status_decline_id'] = (int)$this->config->get('payment_firstdata_order_status_decline_id');
$data['payment_firstdata_decline_id'] = (int)$this->config->get('payment_firstdata_order_status_decline_id');
}

if (isset($this->request->post['payment_firstdata_order_status_void_id'])) {
$data['payment_firstdata_order_status_void_id'] = (int)$this->request->post['payment_firstdata_order_status_void_id'];
$data['payment_firstdata_void_id'] = (int)$this->request->post['payment_firstdata_order_status_void_id'];
} else {
$data['payment_firstdata_order_status_void_id'] = (int)$this->config->get('payment_firstdata_order_status_void_id');
$data['payment_firstdata_void_id'] = (int)$this->config->get('payment_firstdata_order_status_void_id');
}

if (isset($this->request->post['payment_firstdata_live_url'])) {
Expand Down
34 changes: 17 additions & 17 deletions upload/admin/controller/extension/payment/globalpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,40 +166,40 @@ public function index(): void {
$data['payment_globalpay_tss_check'] = $this->config->get('payment_globalpay_tss_check');
}

if (isset($this->request->post['payment_globalpay_order_status_success_settled_id'])) {
$data['payment_globalpay_order_status_success_settled_id'] = (int)$this->request->post['payment_globalpay_order_status_success_settled_id'];
if (isset($this->request->post['payment_globalpay_success_settled_id'])) {
$data['payment_globalpay_success_settled_id'] = (int)$this->request->post['payment_globalpay_success_settled_id'];
} else {
$data['payment_globalpay_order_status_success_settled_id'] = (int)$this->config->get('payment_globalpay_order_status_success_settled_id');
$data['payment_globalpay_success_settled_id'] = (int)$this->config->get('payment_globalpay_success_settled_id');
}

if (isset($this->request->post['payment_globalpay_order_status_success_unsettled_id'])) {
$data['payment_globalpay_order_status_success_unsettled_id'] = (int)$this->request->post['payment_globalpay_order_status_success_unsettled_id'];
if (isset($this->request->post['payment_globalpay_success_unsettled_id'])) {
$data['payment_globalpay_success_unsettled_id'] = (int)$this->request->post['payment_globalpay_success_unsettled_id'];
} else {
$data['payment_globalpay_order_status_success_unsettled_id'] = (int)$this->config->get('payment_globalpay_order_status_success_unsettled_id');
$data['payment_globalpay_success_unsettled_id'] = (int)$this->config->get('payment_globalpay_success_unsettled_id');
}

if (isset($this->request->post['payment_globalpay_order_status_decline_id'])) {
$data['payment_globalpay_order_status_decline_id'] = (int)$this->request->post['payment_globalpay_order_status_decline_id'];
$data['payment_globalpay_decline_id'] = (int)$this->request->post['payment_globalpay_order_status_decline_id'];
} else {
$data['payment_globalpay_order_status_decline_id'] = (int)$this->config->get('payment_globalpay_order_status_decline_id');
$data['payment_globalpay_decline_id'] = (int)$this->config->get('payment_globalpay_order_status_decline_id');
}

if (isset($this->request->post['payment_globalpay_order_status_decline_pending_id'])) {
$data['payment_globalpay_order_status_decline_pending_id'] = (int)$this->request->post['payment_globalpay_order_status_decline_pending_id'];
if (isset($this->request->post['payment_globalpay_decline_pending_id'])) {
$data['payment_globalpay_decline_pending_id'] = (int)$this->request->post['payment_globalpay_decline_pending_id'];
} else {
$data['payment_globalpay_order_status_decline_pending_id'] = (int)$this->config->get('payment_globalpay_order_status_decline_pending_id');
$data['payment_globalpay_decline_pending_id'] = (int)$this->config->get('payment_globalpay_decline_pending_id');
}

if (isset($this->request->post['payment_globalpay_order_status_decline_stolen_id'])) {
$data['payment_globalpay_order_status_decline_stolen_id'] = (int)$this->request->post['payment_globalpay_order_status_decline_stolen_id'];
if (isset($this->request->post['payment_globalpay_decline_stolen_id'])) {
$data['payment_globalpay_decline_stolen_id'] = (int)$this->request->post['payment_globalpay_decline_stolen_id'];
} else {
$data['payment_globalpay_order_status_decline_stolen_id'] = (int)$this->config->get('payment_globalpay_order_status_decline_stolen_id');
$data['payment_globalpay_decline_stolen_id'] = (int)$this->config->get('payment_globalpay_decline_stolen_id');
}

if (isset($this->request->post['payment_globalpay_order_status_decline_bank_id'])) {
$data['payment_globalpay_order_status_decline_bank_id'] = (int)$this->request->post['payment_globalpay_order_status_decline_bank_id'];
if (isset($this->request->post['payment_globalpay_decline_bank_id'])) {
$data['payment_globalpay_decline_bank_id'] = (int)$this->request->post['payment_globalpay_decline_bank_id'];
} else {
$data['payment_globalpay_order_status_decline_bank_id'] = (int)$this->config->get('payment_globalpay_order_status_decline_bank_id');
$data['payment_globalpay_decline_bank_id'] = (int)$this->config->get('payment_globalpay_decline_bank_id');
}

// Order Statuses
Expand Down
34 changes: 17 additions & 17 deletions upload/admin/controller/extension/payment/globalpay_remote.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,40 +158,40 @@ public function index(): void {
$data['payment_globalpay_remote_liability'] = $this->config->get('payment_globalpay_remote_liability');
}

if (isset($this->request->post['payment_globalpay_remote_order_status_success_settled_id'])) {
$data['payment_globalpay_remote_order_status_success_settled_id'] = (int)$this->request->post['payment_globalpay_remote_order_status_success_settled_id'];
if (isset($this->request->post['payment_globalpay_remote_success_settled_id'])) {
$data['payment_globalpay_remote_success_settled_id'] = (int)$this->request->post['payment_globalpay_remote_success_settled_id'];
} else {
$data['payment_globalpay_remote_order_status_success_settled_id'] = (int)$this->config->get('payment_globalpay_remote_order_status_success_settled_id');
$data['payment_globalpay_remote_success_settled_id'] = (int)$this->config->get('payment_globalpay_remote_success_settled_id');
}

if (isset($this->request->post['payment_globalpay_remote_order_status_success_unsettled_id'])) {
$data['payment_globalpay_remote_order_status_success_unsettled_id'] = (int)$this->request->post['payment_globalpay_remote_order_status_success_unsettled_id'];
if (isset($this->request->post['payment_globalpay_remote_success_unsettled_id'])) {
$data['payment_globalpay_remote_success_unsettled_id'] = (int)$this->request->post['payment_globalpay_remote_success_unsettled_id'];
} else {
$data['payment_globalpay_remote_order_status_success_unsettled_id'] = (int)$this->config->get('payment_globalpay_remote_order_status_success_unsettled_id');
$data['payment_globalpay_remote_success_unsettled_id'] = (int)$this->config->get('payment_globalpay_remote_success_unsettled_id');
}

if (isset($this->request->post['payment_globalpay_remote_order_status_decline_id'])) {
$data['payment_globalpay_remote_order_status_decline_id'] = (int)$this->request->post['payment_globalpay_remote_order_status_decline_id'];
$data['payment_globalpay_remote_decline_id'] = (int)$this->request->post['payment_globalpay_remote_order_status_decline_id'];
} else {
$data['payment_globalpay_remote_order_status_decline_id'] = (int)$this->config->get('payment_globalpay_remote_order_status_decline_id');
$data['payment_globalpay_remote_decline_id'] = (int)$this->config->get('payment_globalpay_remote_order_status_decline_id');
}

if (isset($this->request->post['payment_globalpay_remote_order_status_decline_pending_id'])) {
$data['payment_globalpay_remote_order_status_decline_pending_id'] = (int)$this->request->post['payment_globalpay_remote_order_status_decline_pending_id'];
if (isset($this->request->post['payment_globalpay_remote_decline_pending_id'])) {
$data['payment_globalpay_remote_decline_pending_id'] = (int)$this->request->post['payment_globalpay_remote_decline_pending_id'];
} else {
$data['payment_globalpay_remote_order_status_decline_pending_id'] = (int)$this->config->get('payment_globalpay_remote_order_status_decline_pending_id');
$data['payment_globalpay_remote_decline_pending_id'] = (int)$this->config->get('payment_globalpay_remote_decline_pending_id');
}

if (isset($this->request->post['payment_globalpay_remote_order_status_decline_stolen_id'])) {
$data['payment_globalpay_remote_order_status_decline_stolen_id'] = (int)$this->request->post['payment_globalpay_remote_order_status_decline_stolen_id'];
if (isset($this->request->post['payment_globalpay_remote_decline_stolen_id'])) {
$data['payment_globalpay_remote_decline_stolen_id'] = (int)$this->request->post['payment_globalpay_remote_decline_stolen_id'];
} else {
$data['payment_globalpay_remote_order_status_decline_stolen_id'] = (int)$this->config->get('payment_globalpay_remote_order_status_decline_stolen_id');
$data['payment_globalpay_remote_decline_stolen_id'] = (int)$this->config->get('payment_globalpay_remote_decline_stolen_id');
}

if (isset($this->request->post['payment_globalpay_remote_order_status_decline_bank_id'])) {
$data['payment_globalpay_remote_order_status_decline_bank_id'] = (int)$this->request->post['payment_globalpay_remote_order_status_decline_bank_id'];
if (isset($this->request->post['payment_globalpay_remote_decline_bank_id'])) {
$data['payment_globalpay_remote_decline_bank_id'] = (int)$this->request->post['payment_globalpay_remote_decline_bank_id'];
} else {
$data['payment_globalpay_remote_order_status_decline_bank_id'] = (int)$this->config->get('payment_globalpay_remote_order_status_decline_bank_id');
$data['payment_globalpay_remote_decline_bank_id'] = (int)$this->config->get('payment_globalpay_remote_decline_bank_id');
}

// Order Statuses
Expand Down
34 changes: 17 additions & 17 deletions upload/admin/controller/extension/payment/realex.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,40 +166,40 @@ public function index(): void {
$data['payment_realex_tss_check'] = $this->config->get('payment_realex_tss_check');
}

if (isset($this->request->post['payment_realex_order_status_success_settled_id'])) {
$data['payment_realex_order_status_success_settled_id'] = (int)$this->request->post['payment_realex_order_status_success_settled_id'];
if (isset($this->request->post['payment_realex_success_settled_id'])) {
$data['payment_realex_success_settled_id'] = (int)$this->request->post['payment_realex_success_settled_id'];
} else {
$data['payment_realex_order_status_success_settled_id'] = (int)$this->config->get('payment_realex_order_status_success_settled_id');
$data['payment_realex_success_settled_id'] = (int)$this->config->get('payment_realex_success_settled_id');
}

if (isset($this->request->post['payment_realex_order_status_success_unsettled_id'])) {
$data['payment_realex_order_status_success_unsettled_id'] = (int)$this->request->post['payment_realex_order_status_success_unsettled_id'];
if (isset($this->request->post['payment_realex_success_unsettled_id'])) {
$data['payment_realex_success_unsettled_id'] = (int)$this->request->post['payment_realex_success_unsettled_id'];
} else {
$data['payment_realex_order_status_success_unsettled_id'] = (int)$this->config->get('payment_realex_order_status_success_unsettled_id');
$data['payment_realex_success_unsettled_id'] = (int)$this->config->get('payment_realex_success_unsettled_id');
}

if (isset($this->request->post['payment_realex_order_status_decline_id'])) {
$data['payment_realex_order_status_decline_id'] = (int)$this->request->post['payment_realex_order_status_decline_id'];
$data['payment_realex_decline_id'] = (int)$this->request->post['payment_realex_order_status_decline_id'];
} else {
$data['payment_realex_order_status_decline_id'] = (int)$this->config->get('payment_realex_order_status_decline_id');
$data['payment_realex_decline_id'] = (int)$this->config->get('payment_realex_order_status_decline_id');
}

if (isset($this->request->post['payment_realex_order_status_decline_pending_id'])) {
$data['payment_realex_order_status_decline_pending_id'] = (int)$this->request->post['payment_realex_order_status_decline_pending_id'];
if (isset($this->request->post['payment_realex_decline_pending_id'])) {
$data['payment_realex_decline_pending_id'] = (int)$this->request->post['payment_realex_decline_pending_id'];
} else {
$data['payment_realex_order_status_decline_pending_id'] = (int)$this->config->get('payment_realex_order_status_decline_pending_id');
$data['payment_realex_decline_pending_id'] = (int)$this->config->get('payment_realex_decline_pending_id');
}

if (isset($this->request->post['payment_realex_order_status_decline_stolen_id'])) {
$data['payment_realex_order_status_decline_stolen_id'] = (int)$this->request->post['payment_realex_order_status_decline_stolen_id'];
if (isset($this->request->post['payment_realex_decline_stolen_id'])) {
$data['payment_realex_decline_stolen_id'] = (int)$this->request->post['payment_realex_decline_stolen_id'];
} else {
$data['payment_realex_order_status_decline_stolen_id'] = (int)$this->config->get('payment_realex_order_status_decline_stolen_id');
$data['payment_realex_decline_stolen_id'] = (int)$this->config->get('payment_realex_decline_stolen_id');
}

if (isset($this->request->post['payment_realex_order_status_decline_bank_id'])) {
$data['payment_realex_order_status_decline_bank_id'] = (int)$this->request->post['payment_realex_order_status_decline_bank_id'];
if (isset($this->request->post['payment_realex_decline_bank_id'])) {
$data['payment_realex_decline_bank_id'] = (int)$this->request->post['payment_realex_decline_bank_id'];
} else {
$data['payment_realex_order_status_decline_bank_id'] = (int)$this->config->get('payment_realex_order_status_decline_bank_id');
$data['payment_realex_decline_bank_id'] = (int)$this->config->get('payment_realex_decline_bank_id');
}

// Order Statuses
Expand Down
34 changes: 17 additions & 17 deletions upload/admin/controller/extension/payment/realex_remote.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,40 +158,40 @@ public function index(): void {
$data['payment_realex_remote_liability'] = $this->config->get('payment_realex_remote_liability');
}

if (isset($this->request->post['payment_realex_remote_order_status_success_settled_id'])) {
$data['payment_realex_remote_order_status_success_settled_id'] = (int)$this->request->post['payment_realex_remote_order_status_success_settled_id'];
if (isset($this->request->post['payment_realex_remote_success_settled_id'])) {
$data['payment_realex_remote_success_settled_id'] = (int)$this->request->post['payment_realex_remote_success_settled_id'];
} else {
$data['payment_realex_remote_order_status_success_settled_id'] = (int)$this->config->get('payment_realex_remote_order_status_success_settled_id');
$data['payment_realex_remote_success_settled_id'] = (int)$this->config->get('payment_realex_remote_success_settled_id');
}

if (isset($this->request->post['payment_realex_remote_order_status_success_unsettled_id'])) {
$data['payment_realex_remote_order_status_success_unsettled_id'] = (int)$this->request->post['payment_realex_remote_order_status_success_unsettled_id'];
if (isset($this->request->post['payment_realex_remote_success_unsettled_id'])) {
$data['payment_realex_remote_success_unsettled_id'] = (int)$this->request->post['payment_realex_remote_success_unsettled_id'];
} else {
$data['payment_realex_remote_order_status_success_unsettled_id'] = (int)$this->config->get('payment_realex_remote_order_status_success_unsettled_id');
$data['payment_realex_remote_success_unsettled_id'] = (int)$this->config->get('payment_realex_remote_success_unsettled_id');
}

if (isset($this->request->post['payment_realex_remote_order_status_decline_id'])) {
$data['payment_realex_remote_order_status_decline_id'] = (int)$this->request->post['payment_realex_remote_order_status_decline_id'];
$data['payment_realex_remote_decline_id'] = (int)$this->request->post['payment_realex_remote_order_status_decline_id'];
} else {
$data['payment_realex_remote_order_status_decline_id'] = (int)$this->config->get('payment_realex_remote_order_status_decline_id');
$data['payment_realex_remote_decline_id'] = (int)$this->config->get('payment_realex_remote_order_status_decline_id');
}

if (isset($this->request->post['payment_realex_remote_order_status_decline_pending_id'])) {
$data['payment_realex_remote_order_status_decline_pending_id'] = (int)$this->request->post['payment_realex_remote_order_status_decline_pending_id'];
if (isset($this->request->post['payment_realex_remote_decline_pending_id'])) {
$data['payment_realex_remote_decline_pending_id'] = (int)$this->request->post['payment_realex_remote_decline_pending_id'];
} else {
$data['payment_realex_remote_order_status_decline_pending_id'] = (int)$this->config->get('payment_realex_remote_order_status_decline_pending_id');
$data['payment_realex_remote_decline_pending_id'] = (int)$this->config->get('payment_realex_remote_decline_pending_id');
}

if (isset($this->request->post['payment_realex_remote_order_status_decline_stolen_id'])) {
$data['payment_realex_remote_order_status_decline_stolen_id'] = (int)$this->request->post['payment_realex_remote_order_status_decline_stolen_id'];
if (isset($this->request->post['payment_realex_remote_decline_stolen_id'])) {
$data['payment_realex_remote_decline_stolen_id'] = (int)$this->request->post['payment_realex_remote_decline_stolen_id'];
} else {
$data['payment_realex_remote_order_status_decline_stolen_id'] = (int)$this->config->get('payment_realex_remote_order_status_decline_stolen_id');
$data['payment_realex_remote_decline_stolen_id'] = (int)$this->config->get('payment_realex_remote_decline_stolen_id');
}

if (isset($this->request->post['payment_realex_remote_order_status_decline_bank_id'])) {
$data['payment_realex_remote_order_status_decline_bank_id'] = (int)$this->request->post['payment_realex_remote_order_status_decline_bank_id'];
if (isset($this->request->post['payment_realex_remote_decline_bank_id'])) {
$data['payment_realex_remote_decline_bank_id'] = (int)$this->request->post['payment_realex_remote_decline_bank_id'];
} else {
$data['payment_realex_remote_order_status_decline_bank_id'] = (int)$this->config->get('payment_realex_remote_order_status_decline_bank_id');
$data['payment_realex_remote_decline_bank_id'] = (int)$this->config->get('payment_realex_remote_decline_bank_id');
}

// Order Statuses
Expand Down
Loading

0 comments on commit ca74422

Please sign in to comment.