Order details
- This is the default status page for your order for {`{{ order_summary }}`}.
+ This is the default status page for your order for {order_summary ? order_summary : `{{ order_summary }}`}.
Refund status
- The merchant has granted you refunds on the purchase of {`{{ refund_amount }}`}.
+ The merchant has granted you refunds on the purchase of {refund_amount ? refund_amount : `{{ refund_amount }}`}.
Full contract details
@@ -108,15 +81,20 @@ export function ShowOrderDetails(): VNode {
}
-function Title(): VNode {
- return Status of your order for {`{order_summary}`}
-}
-
export function mount(): void {
try {
- const params = new URL(window.location.href).searchParams
+ const fromLocation = new URL(window.location.href).searchParams
+ const os = fromLocation.get('order_summary') || undefined;
+ if (os) {
+ render(, document.head);
+ }
+
+ const ra = fromLocation.get('refund_amount') || undefined;
+ const ct = fromLocation.get('contract_terms') || undefined;
+
render(