Expose payment gateway metadata
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s

This commit is contained in:
androidlover5842
2026-01-30 09:47:54 +05:30
parent e324eee065
commit d0db294d1c
2 changed files with 16 additions and 0 deletions

View File

@@ -107,6 +107,14 @@ private fun Payment.toResponse(): PaymentResponse {
amount = amount,
currency = currency,
method = method.name,
gatewayPaymentId = gatewayPaymentId,
gatewayTxnId = gatewayTxnId,
bankRefNum = bankRefNum,
mode = mode,
pgType = pgType,
payerVpa = payerVpa,
payerName = payerName,
paymentSource = paymentSource,
reference = reference,
notes = notes,
receivedAt = receivedAt.toString(),

View File

@@ -17,6 +17,14 @@ data class PaymentResponse(
val amount: Long,
val currency: String,
val method: String,
val gatewayPaymentId: String?,
val gatewayTxnId: String?,
val bankRefNum: String?,
val mode: String?,
val pgType: String?,
val payerVpa: String?,
val payerName: String?,
val paymentSource: String?,
val reference: String?,
val notes: String?,
val receivedAt: String,