Skip to content

Commit 80bc1d4

Browse files
authored
Merge pull request #373 from 202ecommerce/bugfix/49000-vault-manage
refs #49000 vault actions
2 parents 9cb3deb + 09943e2 commit 80bc1d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

controllers/front/vaultList.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,13 @@ public function displayAjaxRemovePaypalVaulting()
118118
])->send();
119119
}
120120

121+
if (!$paypalVaulting->id_customer || $paypalVaulting->id_customer != $this->context->customer->id) {
122+
return $response->setData([
123+
'success' => false,
124+
'message' => 'PayPal vaulting is not found',
125+
])->send();
126+
}
127+
121128
if (false === $this->method->deleteVaultPaymentToken($paypalVaulting->vault_id)) {
122129
return $response->setData([
123130
'success' => false,

0 commit comments

Comments
 (0)