We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cae7248 commit a225868Copy full SHA for a225868
server/src/orders/orders.service.ts
@@ -39,7 +39,7 @@ export class OrdersService {
39
async verify(verifyPaymentDto: VerifyPaymentDto): Promise<boolean> {
40
console.log(verifyPaymentDto);
41
// TODO: fetch order id from db to check if it exists
42
- validatePaymentVerification(
+ const validation = validatePaymentVerification(
43
{
44
order_id: verifyPaymentDto.razorpay_order_id,
45
payment_id: verifyPaymentDto.razorpay_payment_id,
@@ -48,6 +48,6 @@ export class OrdersService {
48
rzpConfig.keySecret,
49
);
50
// TODO: mark payment success in db
51
- return true;
+ return validation;
52
}
53
0 commit comments