Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Edgar Rasquin 326 posts 925 karma points
    May 31, 2021 @ 16:06
    Edgar Rasquin
    0

    How to pass language to payment provider

    Hi Matt,

    I have now set up the shop in three languages using the new language variants.

    The checkout pages are all in the correct language.

    But when I get passed on from say english vendr checkout process

    /en/checkout/review-order/
    

    to e.g. STRIPE payment page

    https://checkout.stripe.com/pay/cs_test_a...
    

    it is in german.

    When the payment is processed I than get returned to the german shop when realy it should be the english URL...

    Where can I adjust that?

    Thanks

  • Edgar Rasquin 326 posts 925 karma points
    May 31, 2021 @ 16:10
    Edgar Rasquin
    0

    OK, it seems as if STRIPE looks for the browser language. I have now changed the language to english and the STRIPE payment page shows up in english.

    But the return language is still german when really should be english as described above.

    Thanks

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jun 01, 2021 @ 08:30
    Matt Brailsford
    0

    Hi Edgar,

    What do you have setup in your payment providers settings for the Continue URL? Is this pointing to the right language version confirmation page?

    Matt

  • Edgar Rasquin 326 posts 925 karma points
    Jun 01, 2021 @ 08:34
    Edgar Rasquin
    0

    Hi Matt,

    thanks for your reply.

    Problem is, that there is only one field for three languages. Best solution would be to turn the field into dictionary value? I tried but it did not work.

    enter image description here

    Edgar

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jun 01, 2021 @ 08:36
    Matt Brailsford
    100

    Hi Edgar,

    If the different sites uses the same store then yes, you'd need to use the dictionary input to provide different values per language. Vendr should then translate those settings before passing them to the payment provider using the language ISO code of the order to determine which values to use.

    When you say "it didn't work". How exactly didn't it work?

    Matt

  • Edgar Rasquin 326 posts 925 karma points
    Jun 04, 2021 @ 13:06
    Edgar Rasquin
    0

    Hi Matt,

    it is only one site using one store. But since it is only one payment method page for all three languages, I have to somehow fill in three different values. But maybe i don't understand the concept correctly.

    Anyway, it is working now. My mistake was, not to clear the value in each field before entering the dictionary values. That way Umbraco does not override the existing field value.

    Thanks,

    Edgar

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Jun 04, 2021 @ 13:14
    Matt Brailsford
    0

    Ahhh, great stuff. Glad you got it working 👍

Please Sign in or register to post replies

Write your reply to:

Draft