Download tasks/etsy/environment/reference/clone/frontend/templates/checkout.html from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 2.56 kB
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/etsy/environment/reference/clone/frontend/templates/checkout.html
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/etsy/environment/reference/clone/frontend/templates/checkout.html
-
curl -L -o checkout.html https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/etsy/environment/reference/clone/frontend/templates/checkout.html
2.56 kB
| {% extends "base.html" %} | |
| {% block content %} | |
| <section class="checkout-shell" data-checkout-id="{{ checkout.checkout_id }}"> | |
| <h1>Review and pay</h1> | |
| {% if cancelled %}<div class="toast" role="status">Stripe test Checkout was cancelled. Your cart is unchanged.</div>{% endif %} | |
| {% if payment_error %}<div class="validation-errors" role="alert"><p>{{ payment_error }}</p></div>{% endif %} | |
| <div class="checkout-grid"> | |
| <div> | |
| <div class="checkout-card"> | |
| <h2>Shipping address</h2> | |
| <p>{{ checkout.address.name }}<br>{{ checkout.address.address1 }}{% if checkout.address.address2 %}<br>{{ checkout.address.address2 }}{% endif %}<br>{{ checkout.address.city }}, {{ checkout.address.state }} {{ checkout.address.postal_code }}<br>United States</p> | |
| </div> | |
| <div class="checkout-card"> | |
| <h2>Items</h2> | |
| <ul class="order-lines"> | |
| {% for line in checkout.lines %} | |
| <li><img src="{{ line.image }}" alt=""><div><strong>{{ line.title }}</strong><p>{{ line.summary }}</p><p>Qty {{ line.quantity }}</p></div><strong>{{ line.subtotal }}</strong></li> | |
| {% endfor %} | |
| </ul> | |
| </div> | |
| </div> | |
| <aside class="checkout-card"> | |
| <h2>Order total</h2> | |
| <p class="summary-line"><span>Items</span><span>{{ checkout.item_total }}</span></p> | |
| <p class="summary-line"><span>Shipping</span><span>{{ checkout.shipping }}</span></p> | |
| <p class="summary-line"><span>Estimated tax</span><span>{{ checkout.tax }}</span></p> | |
| <p class="summary-line summary-total"><strong>Total</strong><strong>{{ checkout.total }} USD</strong></p> | |
| {% if adapter == "local-sandbox" %} | |
| <p><strong>Choose a test-only outcome</strong></p> | |
| <div class="payment-scenarios"> | |
| {% for scenario in scenarios %} | |
| <form action="/checkout/{{ checkout.checkout_id }}/pay" method="post"> | |
| <input type="hidden" name="csrf" value="{{ csrf }}"> | |
| <input type="hidden" name="scenario_id" value="{{ scenario.id }}"> | |
| <button class="pay-button" type="submit">{{ scenario.label }}</button> | |
| </form> | |
| {% endfor %} | |
| </div> | |
| {% else %} | |
| <form action="/checkout/{{ checkout.checkout_id }}/pay" method="post"> | |
| <input type="hidden" name="csrf" value="{{ csrf }}"> | |
| <button class="pay-button" type="submit">Pay with Stripe test Checkout</button> | |
| </form> | |
| {% endif %} | |
| <p class="muted">Simulation only. No live charge, refund, shipment, or seller payout occurs.</p> | |
| </aside> | |
| </div> | |
| </section> | |
| {% endblock %} | |