mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 06:28:12 +00:00
Release Order plus Storage Allocation Rule and fee
This commit is contained in:
@@ -45,7 +45,7 @@ export class CacBankProvider implements PaymentProvider {
|
||||
api_key: this.apiKey,
|
||||
customer_mobile: input.payerAccount,
|
||||
currency: input.currency || this.defaultCurrency,
|
||||
desc: `EDR ${input.orderRef}`.slice(0, 500),
|
||||
desc: `${input.orderRef}`.slice(0, 500),
|
||||
vender_ref: input.merchantOrderId,
|
||||
amount: this.toMajorAmount(input.amountMinor, input.currency),
|
||||
company_services_id: this.companyServicesId,
|
||||
|
||||
@@ -62,7 +62,7 @@ export class CardProvider implements PaymentProvider {
|
||||
const requestBody: CardInitiateRequest = {
|
||||
amount,
|
||||
currency: input.currency,
|
||||
description: `EDR ${input.orderRef}`,
|
||||
description: `${input.orderRef}`,
|
||||
metadata: {
|
||||
merchantOrderId: input.merchantOrderId,
|
||||
orderRef: input.orderRef,
|
||||
|
||||
@@ -62,7 +62,7 @@ export class CbeBirrProvider implements PaymentProvider {
|
||||
merchantOrderId: input.merchantOrderId,
|
||||
amount,
|
||||
currency: input.currency,
|
||||
description: `EDR ${input.orderRef}`,
|
||||
description: `${input.orderRef}`,
|
||||
// Per-transaction browser return target (each calling app has its own UI); config is fallback.
|
||||
returnUrl: input.returnUrl ?? this.returnUrl,
|
||||
notifyUrl: this.notifyUrl,
|
||||
|
||||
@@ -207,7 +207,7 @@ export class DMoneyProvider implements PaymentProvider {
|
||||
merch_code: this.merchantCode,
|
||||
merch_order_id: input.merchantOrderId,
|
||||
trade_type: "Checkout" as const,
|
||||
title: `EDR ${input.orderRef}`,
|
||||
title: `${input.orderRef}`,
|
||||
total_amount: totalAmount,
|
||||
trans_currency: 1 == 1 ? "DJF": this.currency,
|
||||
timeout_express: this.timeoutExpress,
|
||||
|
||||
@@ -210,7 +210,7 @@ export class WaafiProvider implements PaymentProvider {
|
||||
amount: this.toAmount(input.amountMinor),
|
||||
// Waafi has no ETB; `waafi.currency` overrides the booking currency when set.
|
||||
currency: this.currency || input.currency,
|
||||
description: `EDR ${input.orderRef}`,
|
||||
description: `${input.orderRef}`,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user