fix(SPG-816): add payment date and payment method
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
parent
e00a6aae31
commit
c5fdca615f
|
@ -39,6 +39,8 @@ export class MidtransCallbackHandler
|
||||||
settlement_date: new Date(data.settlement_time),
|
settlement_date: new Date(data.settlement_time),
|
||||||
payment_code: await generateInvoiceCodeHelper(this.dataService, 'PMY'),
|
payment_code: await generateInvoiceCodeHelper(this.dataService, 'PMY'),
|
||||||
payment_code_reference: data.approval_code,
|
payment_code_reference: data.approval_code,
|
||||||
|
payment_date: data.settlement_time,
|
||||||
|
payment_type_method_name: `Midtrans/${data.payment_type}`,
|
||||||
});
|
});
|
||||||
} else if (['pending'].includes(data['transaction_status'])) {
|
} else if (['pending'].includes(data['transaction_status'])) {
|
||||||
Object.assign(transaction, {
|
Object.assign(transaction, {
|
||||||
|
|
Loading…
Reference in New Issue