Expose payment gateway metadata
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s
This commit is contained in:
@@ -107,6 +107,14 @@ private fun Payment.toResponse(): PaymentResponse {
|
|||||||
amount = amount,
|
amount = amount,
|
||||||
currency = currency,
|
currency = currency,
|
||||||
method = method.name,
|
method = method.name,
|
||||||
|
gatewayPaymentId = gatewayPaymentId,
|
||||||
|
gatewayTxnId = gatewayTxnId,
|
||||||
|
bankRefNum = bankRefNum,
|
||||||
|
mode = mode,
|
||||||
|
pgType = pgType,
|
||||||
|
payerVpa = payerVpa,
|
||||||
|
payerName = payerName,
|
||||||
|
paymentSource = paymentSource,
|
||||||
reference = reference,
|
reference = reference,
|
||||||
notes = notes,
|
notes = notes,
|
||||||
receivedAt = receivedAt.toString(),
|
receivedAt = receivedAt.toString(),
|
||||||
|
|||||||
@@ -17,6 +17,14 @@ data class PaymentResponse(
|
|||||||
val amount: Long,
|
val amount: Long,
|
||||||
val currency: String,
|
val currency: String,
|
||||||
val method: 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 reference: String?,
|
||||||
val notes: String?,
|
val notes: String?,
|
||||||
val receivedAt: String,
|
val receivedAt: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user