merchant-samples.gohtml (2930B)
1 {{define "content"}} 2 <form method="post" action="{{.HeaderURL}}/orders" class="step-list"> 3 <article class="step-card"> 4 <h2>{{tr .Lang "Plain payment"}}</h2> 5 <p>{{trf .Lang "Buy the same postcard for 1 {currency} using either contract format." "currency" .Content}}</p> 6 <div class="action-row"> 7 <button class="button button-secondary" name="sample" value="pay-v0">{{tr .Lang "Buy postcard"}} (v0)</button> 8 <button class="button button-secondary" name="sample" value="pay-v1">{{tr .Lang "Buy postcard"}} (v1)</button> 9 </div> 10 </article> 11 <article class="step-card"> 12 <h2>{{tr .Lang "Café basket"}}</h2> 13 <img src="{{.StaticPrefix}}coffee.png" width="64" height="64" alt="{{tr .Lang "Coffee"}}"> 14 <img src="{{.StaticPrefix}}croissant.png" width="64" height="64" alt="{{tr .Lang "Croissant"}}"> 15 <p>{{trf .Lang "Buy two coffees, a croissant and a tea for {amount}. Open the product list in your wallet to see the quantities, prices and images." "amount" (printf "7 %s" .Content)}}</p> 16 <div class="action-row"><button class="button button-secondary" name="sample" value="basket">{{tr .Lang "Buy café basket"}}</button></div> 17 </article> 18 <article class="step-card"> 19 <h2>{{tr .Lang "Single-use discount"}}</h2> 20 <p>{{trf .Lang "Buy a coffee for 2 {currency} to earn a coupon. Use one coupon to pay 1 {currency}, or two coupons for a free coffee." "currency" .Content}}</p> 21 <div class="action-row"> 22 <button class="button button-secondary" name="sample" value="coffee">{{tr .Lang "Buy coffee"}}</button> 23 </div> 24 </article> 25 <article class="step-card"> 26 <h2>{{tr .Lang "Day Pass for an exhibition"}}</h2> 27 <p>{{trf .Lang "Pay 1 {currency} per visit or buy a pass for 3 {currency}. Use the pass for repeat visits until midnight UTC." "currency" .Content}}</p> 28 <div class="action-row"> 29 <button class="button button-secondary" name="sample" value="exhibition">{{tr .Lang "Visit the exhibition"}}</button> 30 </div> 31 </article> 32 <article class="step-card"> 33 <h2>{{tr .Lang "Two-currency payment"}}</h2> 34 <p>{{trf .Lang "Choose the postcard price in your wallet. Pay 1 {currency} or CHF 0.10." "currency" .Content}}</p> 35 <div class="action-row"><button class="button button-secondary" name="sample" value="postcard">{{tr .Lang "Buy postcard"}}</button></div> 36 </article> 37 <article class="step-card"> 38 <h2>{{tr .Lang "Cross-currency discount"}}</h2> 39 <p>{{trf .Lang "Earn a coffee coupon for 2 {currency} or CHF 0.20. Use it in either currency to pay 1 {currency} or CHF 0.10 for the next coffee." "currency" .Content}}</p> 40 <div class="action-row"> 41 <button class="button button-secondary" name="sample" value="earn-multi">{{tr .Lang "Earn a coupon"}}</button> 42 <button class="button button-secondary" name="sample" value="redeem-multi">{{tr .Lang "Buy another coffee"}}</button> 43 </div> 44 </article> 45 </form> 46 {{end}}