diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-11-15 16:09:59 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-11-15 16:09:59 +0100 |
commit | e8ba4a9850c38623c79e5faf94b8a45bc104e0e1 (patch) | |
tree | 54e0b1de0a788067b48213aeae435653c52aca4d /core | |
parent | 33d99c3106d8f69335d358595c7628958fe089d2 (diff) | |
parent | ef90fc2d9aee00bc7d80d012d5118527340f4ee3 (diff) | |
download | docs-e8ba4a9850c38623c79e5faf94b8a45bc104e0e1.tar.gz docs-e8ba4a9850c38623c79e5faf94b8a45bc104e0e1.tar.bz2 docs-e8ba4a9850c38623c79e5faf94b8a45bc104e0e1.zip |
Merge branch 'master' of git+ssh://git.taler.net/docs
Diffstat (limited to 'core')
-rw-r--r-- | core/api-merchant.rst | 48 |
1 files changed, 43 insertions, 5 deletions
diff --git a/core/api-merchant.rst b/core/api-merchant.rst index ca7e0355..4d1df249 100644 --- a/core/api-merchant.rst +++ b/core/api-merchant.rst @@ -3173,7 +3173,6 @@ Removing template - Dynamic template ---------------- @@ -3189,8 +3188,11 @@ Dynamic template **Response:** - :http:statuscode:`204 No content`: - The creation of the public template is successful. + :http:statuscode:`200 OK`: + The creation of the dynamic template is successful. Returns a `DynamicTemplateResponse`. + :http:statuscode:`202 Accepted`: + If the user use a browser, he should be redirected to the provided locations to finish his order. The reponse will be an `RedirectTemplate`. After being redirected, it will returns `DynamicTemplateResponse`. + If the user use the application Taler, he will not redirected to another location. :http:statuscode:`404 Not found`: The merchant instance is unknown or it is not in our data. @@ -3200,10 +3202,46 @@ Dynamic template interface DynamicTemplateDetails { // Subject of the template - subject: string; + subject?: string; // The amount entered by the customer - amount: Amount; + amount?: Amount; + } + + + .. ts:def:: DynamicTemplateWebBrowser + + interface DynamicTemplateWebBrowser { + + // Subject of the template + subject?: string; + + // The amount entered by the customer + amount?: Amount; + + // The button the user needs to complete his order. + button_url: RedirectTemplate; + + } + + .. ts:def:: DynamicTemplateResponse + + interface DynamicTemplateResponse { + + // After enter the request. The user will be pay with QR code. + public_qrcode: string; + + } + + + .. ts:def:: RedirectTemplate + + interface RedirectTemplate { + + // The user should go to the URL. + // He will be redirected to finish his order and pay on it. + public_url: string; + } |