View Issue Details

IDProjectCategoryView StatusLast Update
0007392Talermerchant backend API (HTTP specification)public2023-02-21 16:39
Reportersebasjm Assigned ToPriscilla Huang  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.9.2Fixed in Version0.9.2 
Summary0007392: Support for "Buy Now" button
 * user should be able to register a new shop
 * user should provide email for PW reset
 * merchant backend should support a new endpoint that use this information to create a new order and redirect to it after success

Similar as other payments provider does, like Paypal. Docs:

<form target="merchant_id" action="https://backend.url/instances/merchant_id/paynow" method="post">
    <!-- Identify your business so that you can collect the payments. -->
    <input type="hidden" name="mechant" value="merchant_id">

    <!-- Specify details about the item that buyers will purchase. -->
    <input type="hidden" name="summary" value="Cool Product">
    <input type="hidden" name="amount" value="29.00">
    <input type="hidden" name="currency_code" value="USD">

    <!-- Display the payment button. -->
    <input type="button" name="submit" src="images/checkout-btn.png" alt="Pay now" class="pp-btn">
        Cool Product $29

TagsNo tags attached.


Christian Grothoff

2022-11-11 10:28

manager   ~0019400

I think this is very similar to the 'static QR code' feature we discussed for NetzBon, and we can likely to BOTH in the same API. I think we should call this feature a "template", where the merchant backend has a public API to create orders based on certain templates. The template endpoint (/template/$TEMPLATE_ID) would accept some arguments from the client (like the price for the static QR code) and add others based on the template (like the summary, and maybe a fulfillment URL). The resulting order would be returned to the customer/wallet for payment as described above.

Christian Grothoff

2023-02-19 10:39

manager   ~0019876

I believe the simple template mechanism is working now, too.

Issue History

Date Modified Username Field Change
2022-10-11 13:16 sebasjm New Issue
2022-10-11 13:16 sebasjm Status new => assigned
2022-10-11 13:16 sebasjm Assigned To => sebasjm
2022-10-20 11:47 Christian Grothoff Target Version 0.9.1 =>
2022-11-11 10:25 Christian Grothoff Assigned To sebasjm => Priscilla Huang
2022-11-11 10:28 Christian Grothoff Note Added: 0019400
2023-02-19 10:39 Christian Grothoff Status assigned => resolved
2023-02-19 10:39 Christian Grothoff Resolution open => fixed
2023-02-19 10:39 Christian Grothoff Fixed in Version => 0.9.2
2023-02-19 10:39 Christian Grothoff Note Added: 0019876
2023-02-19 10:39 Christian Grothoff Product Version => git (master)
2023-02-19 10:39 Christian Grothoff Target Version => 0.9.2
2023-02-21 16:39 Christian Grothoff Status resolved => closed