Skip to content
Open

say #28

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/services/payment.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ class PaymentService {

const refundAmountInPaise =
refundAmount &&
refundAmount > 0 &&
Math.round(refundAmount * 100) <= payment.amount
refundAmount > 0 &&
Math.round(refundAmount * 100) <= payment.amount
? Math.round(refundAmount * 100)
: payment.amount;

Expand Down Expand Up @@ -479,6 +479,10 @@ class PaymentService {
}
}

async sayHello() {
return 'Hello Ankur Bhiya '
}

// Handle refund processed webhook
async handleRefundProcessed(refundData) {
const payment = await paymentDAO.findByRazorpayPaymentId(
Expand Down