Skip to content

Commit

Permalink
razorpay declarations chabged
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanptm committed Sep 17, 2024
1 parent e062918 commit c1aec83
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/src/infrastructure/services/RazorPayService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import IPaymentService, { RazorpayOrder } from '../../domain/interface/services/
import { StatusCode } from '../../types';
import CustomError from '../../domain/entities/CustomError'
import * as crypto from 'crypto';
import logger from '../../utils/logger';


export default class RazorPayService implements IPaymentService {
Expand Down Expand Up @@ -31,7 +30,6 @@ export default class RazorPayService implements IPaymentService {
amount: typeof order.amount === 'string' ? parseInt(order.amount, 10) : order.amount,
};
} catch (error) {
logger.error(error)
throw new CustomError('Error creating Razorpay order', StatusCode.PaymentError);
}
}
Expand Down

1 comment on commit c1aec83

@vercel
Copy link

@vercel vercel bot commented on c1aec83 Sep 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.