|
From: | Christian Grothoff |
Subject: | Re: [Taler] Merchant REST API question |
Date: | Fri, 6 Dec 2024 14:02:32 +0100 |
User-agent: | Mozilla Thunderbird |
Hi Hartmut,AFAIK you should already be able to pass null in the JSON and it should be ignored. That said, having *either* a fulfillment_url *or* a fullfillment_msg is mandatory, so IIRC you cannot skip both even though either is marked as "optional".
Happy hacking! -Christian On 12/6/24 12:01 AM, Hartmut Goebel wrote:
Hi, a small questions regarding the Merchant REST API: * Can one pass 'null' as a value and the respective key will be ignored? This would ease implementation since one could simply write e.g. order=dict(amount=…, summary=…, fulfillment_url=aaa.url if aaa.url else None) ## <<<= instead of order=dict(amount=…, summary=…) ifaaa.url: order['fulfillment_url'] = aaa.url -- Regards Hartmut Goebel | Hartmut Goebel |h.goebel@crazy-compilers.com | |www.crazy-compilers.com | compilers which you thought are impossible |
[Prev in Thread] | Current Thread | [Next in Thread] |