Skip to content

Commit

Permalink
Use payment method title properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
vedanshujain committed Jan 6, 2025
1 parent 67e8cc2 commit 6054c51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/order-confirmation.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ <h2 class="text-xl font-semibold text-red-700 mb-2">Error Loading Order</h2>

try {
const order = await wooAPI.getOrder(orderId, orderKey, billingEmail);
const settings = await wooAPI.getSettings();

// Create order info HTML
const orderHtml = `
const orderHtml = `w
<div class="grid grid-cols-2 gap-4">
<div>
<p class="text-sm text-gray-600">Order Number:</p>
Expand All @@ -68,7 +69,7 @@ <h2 class="text-xl font-semibold text-red-700 mb-2">Error Loading Order</h2>
</div>
<div>
<p class="text-sm text-gray-600">Payment Method:</p>
<p class="font-medium">${order.payment_method}</p>
<p class="font-medium">${settings.paymentMethodData[order.payment_method].title}</p>
</div>
</div>
Expand Down

0 comments on commit 6054c51

Please sign in to comment.