|
From: | Jonathan Krebs |
Subject: | Re: [Taler] Android Taler Wallet bug |
Date: | Tue, 9 Jan 2024 21:28:57 +0100 |
User-agent: | Mozilla Thunderbird |
On 09.01.24 21:16, Marc Stibane via Taler wrote:
On 2024-01-09, at 20:57:20, Slack Coder <slackcoder@server.ky> wrote:What problem?When the same fulfillment URL is used for a second order, it results in an "You've already paid for this purchase" error. This feels unexpected because its an entirely different order.
1) May a fulfillment URI be reused?
No: https://docs.taler.net/taler-merchant-api-tutorial.html#repurchase-detection-and-fulfillment-urls
> To ensure this mechanism works as designed, merchants must make sure to not use the same fulfillment URL for different products or for physical products where customers may be expected to buy the article repeatedly. Similarly, it is crucial that merchants consistently use the same fulfillment URL for the same digital product where repurchase detection is desired.
You can use the token $ORDER_ID in the fulillement url when creating the order, it gets replaced by the merchant backend with the actual order id, to create a unique url.
[Prev in Thread] | Current Thread | [Next in Thread] |