add purchase param
This commit is contained in:
@ -140,13 +140,19 @@ const ResendTransaction = ({ isOpen, onClose, selectedTransactionForResend }: Re
|
||||
}
|
||||
break;
|
||||
case 'P':
|
||||
let walletParam = "";
|
||||
apiEndpoint = `${API_URL}/transaction/purchase`;
|
||||
if (data.origin_wallet.name === 'Emoney Account') {
|
||||
walletParam = "emoney";
|
||||
} else if (data.origin_wallet.name === 'Point Account') {
|
||||
walletParam = "point";
|
||||
}
|
||||
apiJsonData = {
|
||||
id_origin_customer: data.origin_customer.id,
|
||||
code_product: "object purchase : masih null",
|
||||
wallet: "emoney or point",
|
||||
destination_number: "parameter number",
|
||||
destination_amount: "parameter amount",
|
||||
code_product: data.purchase.code,
|
||||
wallet: walletParam,
|
||||
destination_number: "",
|
||||
destination_amount: String(data.purchase.amount),
|
||||
pin: pintransactiion
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user