feat: add vpan to card entity

This commit is contained in:
Abdalhamid Alhamad
2025-08-03 11:53:16 +03:00
parent 5e0a4e6bd1
commit fce720237f
7 changed files with 41 additions and 9 deletions

View File

@ -20,7 +20,7 @@ export class TransactionService {
@Transactional()
async createCardTransaction(body: CardTransactionWebhookRequest) {
const card = await this.cardService.getCardByAccountNumber(body.cardId);
const card = await this.cardService.getCardByVpan(body.cardId);
const existingTransaction = await this.findExistingTransaction(body.transactionId, card.account.accountReference);
if (existingTransaction) {