Skip to content

Commit

Permalink
refs #49000 vault actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan202 committed Nov 20, 2024
1 parent 9cb3deb commit 09943e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions controllers/front/vaultList.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ public function displayAjaxRemovePaypalVaulting()
])->send();
}

if (!$paypalVaulting->id_customer || $paypalVaulting->id_customer != $this->context->customer->id) {
return $response->setData([
'success' => false,
'message' => 'PayPal vaulting is not found',
])->send();
}

if (false === $this->method->deleteVaultPaymentToken($paypalVaulting->vault_id)) {
return $response->setData([
'success' => false,
Expand Down

0 comments on commit 09943e2

Please sign in to comment.