-
- Product Information
-
- Product Info
-
-
-
-
-
Product Name
-
- {transactionDetails?.purchase?.product?.name ?? "-"}
-
-
-
-
Price Cash
-
- {transactionDetails?.purchase?.product?.price_cash != null
- ? new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }).format(transactionDetails.purchase.product.price_cash)
- : "-"}
-
-
-
-
Price Point
-
- {transactionDetails?.purchase?.product?.price_point ?? "-"}
-
-
-
-
Product Type
-
- {transactionDetails?.purchase?.product?.type ?? "-"}
-
-
-
-
Provider Name
-
- {transactionDetails?.purchase?.product?.provider?.description ?? "-"}
-
-
-
-
Provider Type
-
- {transactionDetails?.purchase?.product?.provider?.type === "h2h"
- ? "HOST TO HOST"
- : transactionDetails?.purchase?.product?.provider?.type === "agent"
- ? "AGENT"
+
+ {activeTab === 'detail' && transactionDetails?.kind == 'P' && transactionDetails?.kind == 'P' && (
+
+
+ Product Information
+
+ Product Info
+
+
+
+
+
Product Name
+
+ {transactionDetails?.purchase?.product?.name ?? "-"}
+
+
+
+
Price Cash
+
+ {transactionDetails?.purchase?.product?.price_cash != null
+ ? new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }).format(transactionDetails.purchase.product.price_cash)
: "-"}
-
+
+
+
+
Price Point
+
+ {transactionDetails?.purchase?.product?.price_point ?? "-"}
+
+
+
+
Product Type
+
+ {transactionDetails?.purchase?.product?.type ?? "-"}
+
+
+
+
Provider Name
+
+ {transactionDetails?.purchase?.product?.provider?.description ?? "-"}
+
+
+
+
Provider Type
+
+ {transactionDetails?.purchase?.product?.provider?.type === "h2h"
+ ? "HOST TO HOST"
+ : transactionDetails?.purchase?.product?.provider?.type === "agent"
+ ? "AGENT"
+ : "-"}
+
+
-
)}
{activeTab === 'detail' && transactionDetails?.kind != 'P' && transactionDetails?.transfer != null && (
@@ -494,15 +558,21 @@ const DetailTransaction = () => {
let status;
let badgeClass;
+ let badgeClass;
+
if (transactionDetails?.status === 'C') {
status = 'COMPLETE';
badgeClass = 'bg-green-100 text-green-800';
+ badgeClass = 'bg-green-100 text-green-800';
} else if (transactionDetails?.status === 'F') {
status = 'FAILED';
badgeClass = 'bg-red-100 text-red-800';
+ badgeClass = 'bg-red-100 text-red-800';
} else if (transactionDetails?.status === 'O') {
status = 'ON PROCESS';
badgeClass = 'bg-blue-100 text-blue-800';
+ } else if (transactionDetails?.status === 'P') {
+ badgeClass = 'bg-blue-100 text-blue-800';
} else if (transactionDetails?.status === 'P') {
status = 'PENDING';
badgeClass = 'bg-gray-100 text-gray-800';
@@ -514,6 +584,20 @@ const DetailTransaction = () => {
badgeClass = 'bg-purple-100 text-purple-800';
}
+ return (
+
+ {status}
+
+ );
+ badgeClass = 'bg-gray-100 text-gray-800';
+ } else if (transactionDetails?.status === 'R') {
+ status = 'ROLLBACK';
+ badgeClass = 'bg-yellow-100 text-yellow-800';
+ } else if (transactionDetails?.status === 'S') {
+ status = 'REVERSAL';
+ badgeClass = 'bg-purple-100 text-purple-800';
+ }
+
return (
{status}
@@ -537,6 +621,7 @@ const DetailTransaction = () => {
kind = 'TOP UP';
} else if (transactionDetails?.kind === 'R') {
kind = 'RETURN';
+ } else if (transactionDetails?.kind === 'E') {
} else if (transactionDetails?.kind === 'E') {
kind = 'REWARD';
}
@@ -666,6 +751,7 @@ const DetailTransaction = () => {
)}
+ {activeTab === 'destinationwallet' && transactionDetails?.kind?.trim()?.toUpperCase() !== 'P' && (
{activeTab === 'destinationwallet' && transactionDetails?.kind?.trim()?.toUpperCase() !== 'P' && (
Destination Wallet
@@ -725,7 +811,7 @@ const DetailTransaction = () => {
Type |
Request Date |
Response Date |
- Response Body |
+ {/* Response Body | */}
Response Code |
Request Endpoint |
@@ -796,6 +882,7 @@ const DetailTransaction = () => {
)}
+ {activeTab === 'approve' && transactionDetails?.kind == "P" && (
{activeTab === 'approve' && transactionDetails?.kind == "P" && (
Approval Logs
@@ -872,7 +959,7 @@ const DetailTransaction = () => {
Type |
Request Date |
Response Date |
- Response Body |
+ {/* Response Body | */}
Response Code |
Request Endpoint |