fix(SPG-816): add payment date and payment method
continuous-integration/drone/tag Build is passing Details

pull/61/head devel_20.1.22
shancheas 2024-08-08 18:24:59 +07:00
parent e00a6aae31
commit c5fdca615f
1 changed files with 2 additions and 0 deletions

View File

@ -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, {