merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

main.typ (901B)


      1 #import "@taler-merchant/orders:0.0.0": form
      2 
      3 #form((
      4   business_name: "example.com",
      5   orders: (
      6     (
      7       order_id: "2025.001-5asdasfa",
      8       row_id: 1,
      9       summary: "Some purchase",
     10       timestamp: (t_s: 1764967786),
     11       amount: "EUR:10.00",
     12       paid: true,
     13       refundable: false,
     14     ),
     15     (
     16       order_id: "2025.002-5asdasfa",
     17       row_id: 2,
     18       summary: "Refunded order",
     19       timestamp: (t_s: 1764970000),
     20       amount: "EUR:5.50",
     21       refund_amount: "EUR:2.00",
     22       pending_refund_amount: "EUR:1.00",
     23       paid: true,
     24       refundable: true,
     25     ),
     26     (
     27       order_id: "2025.003-5asdasfa",
     28       row_id: 3,
     29       summary: "Another order",
     30       timestamp: (t_s: 1764975000),
     31       amount: "EUR:3.25",
     32       paid: false,
     33       refundable: false,
     34     ),
     35   ),
     36   total_amount: "EUR:18.75",
     37   total_refund_amount: "EUR:2.00",
     38   total_pending_refund_amount: "EUR:1.00",
     39 ))