Gateway Screen

Stefan's Avatar

Stefan

30 Oct, 2018 11:06 PM

I tested the Gateway Screen with variables. I noticed that the string returned by the server must exactly match the URL stored in sparkbooth.

If the server changes the order of the variables or transmits additional values, it will not work. Can Sparkbooth be improved here?

  1. Support Staff 1 Posted by John Wu on 30 Oct, 2018 11:37 PM

    John Wu's Avatar

    It must match the front part of the url. So if the success url is
    https://yourdomain.com/success, it will match
    https://yourdomain.com/success?id=XXXXXX.

    Do you have an example of what you are looking for?

  2. 2 Posted by Stefan on 31 Oct, 2018 09:01 AM

    Stefan's Avatar

    Here are my examples:

    My success URL is:
    http://localhost:8777/success.htm id={id}&booth={booth}&promo_conde=4711&prints={prints}

    The server returns this URL:
    http://localhost:8777/success.htm?booth=FotoBoxL&id=709543&promo_code=4711&prints=2

    Because of the different order of the variables in the return value, it does not seem to work.

    And it does not work if the server still sends additional information that does not occur in the success URL. For example:

    Success URL:
    http://localhost:8777/success.htm?booth={booth}&id={id}&prints={prints}

    Server return:
    http://localhost:8777/success.htm?booth=FotoBoxL&id=709543&promo_code=4711&prints=2

    Here the additional promo_code seems to be the problem.

    Only if the entire return value from beginning to end with the success URL matches it works for me

  3. Support Staff 3 Posted by John Wu on 31 Oct, 2018 03:27 PM

    John Wu's Avatar

    Why don't you just use http://localhost:8777/success.htm
    <http://localhost:8777/success.htm?booth=%7Bbooth%7D&id=%7Bid%7D&prints=%7Bprints%7D>
    for
    the success url? So that way it does not matter what the query variables
    are that follow?

  4. Support Staff 4 Posted by John Wu on 31 Oct, 2018 03:39 PM

    John Wu's Avatar

    You are right it is trying to match the enter url. If I change to match the
    first part of the url, would that work for you?

    >

  5. Support Staff 5 Posted by John Wu on 31 Oct, 2018 10:48 PM

    John Wu's Avatar

    Try this build
    https://www.dropbox.com/s/utqk4w73b7duem5/sparkboothdslr-6.0.75.exe?dl=0

    I added a match type setting for the success and failed URLs (see attached
    screenshot)
    - Entire: Url must match the entire web page url from beginning to end
    - Beginning: Url must match the beginning of the url. This will work with
    your example if you set your success and cancel urls are "
    http://localhost:8777/success.html" and "http://localhost:8777/failed.html"
    - the match will ignore the query string parameters that follow the page url
    - Any Part: Url matches any part of the page url. So you can use just
    "success,html" and "failed.html" for the urls.

  6. 6 Posted by Stefan on 01 Nov, 2018 02:52 PM

    Stefan's Avatar

    All URL Match versions I tested today and they work. - Super !

    Thanks for the great service. The setting "Beginning" is really helpful for me. A use for "Any Part" is not (yet) occurred to me :-) Maybe for http (s) deviations.

    All you have to do is make sure that the order of the variables supplied by the server is the same as the URL, or that you omit variables in the cuccess URL. One could point this out in the documentation.

    What's missing is the translation of the buttons "Before Starting / For Printing", as well as the new Schlater "URL Match" ;-)

    Here are my settings, with which it works now:

  7. Support Staff 7 Posted by John Wu on 01 Nov, 2018 03:58 PM

    John Wu's Avatar

    Cool. Thanks to letting me know. The translations are coming later.

  8. 8 Posted by Stefan on 01 Nov, 2018 05:05 PM

    Stefan's Avatar

    To be able to use HTML pages universally: Can the mode "Before Starting / For Printing" also be transmitted in one variable?

  9. Support Staff 9 Posted by John Wu on 01 Nov, 2018 10:12 PM

    John Wu's Avatar

    Sure, I add a {buying} token you can use the urls which will be replace
    with "session" or "printing" in the next update.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

19 Nov, 2018 04:57 AM
19 Nov, 2018 01:05 AM
18 Nov, 2018 10:47 PM
18 Nov, 2018 09:53 PM
18 Nov, 2018 09:54 AM