This topic contains 16 replies, has 2 voices, and was last updated by  Haris 3 months ago.

  • Author
    Posts
  • Participant
    dlukic
    Regular Member
    Member since: 04.12.2015
    Number of posts: 46

    we have our application as front end to eSignLive system.
    we use SDK 11 to interact with eSignLive.
    i’m trying to see signing ceremony in correct application culture.
    During user creation I have set user language like this
    if (ci.Name.ToLower().Contains(“fr”))
    {
    lang = “FRENCH”;
    }
    else
    {
    lang = “ENGLISH”;
    }

    AccountMember member = AccountMemberBuilder.NewAccountMember(broker.Email)
    .WithFirstName(broker.FirstName)
    .WithLastName(broker.LastName)
    .WithAddress(address)
    .WithCompany(broker.BrokerageName)
    .WithPhoneNumber(broker.PhoneNumberWithAreaCode)
    .WithTitle(broker.Title)
    .WithLanguage(lang)
    .WithStatus(SenderStatus.ACTIVE).Build();

    Sender sender = EslClient.AccountService.InviteUser(member);

    and package like this:
    ….
    System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo(“fr”);
    if(packageModel.Signers[0].UsePhoneInTwoFactorAuth)
    {
    package = PackageBuilder.NewPackageNamed(packageModel.Name)
    .WithEmailMessage(packageModel.Message)
    .DescribedAs(“This is a new package”)
    .WithSenderInfo(SenderInfoBuilder.NewSenderInfo(packageModel.Sender.Email).WithName(packageModel.Sender.FirstName, packageModel.Sender.LastName).WithTitle(packageModel.Sender.Title))
    .WithLanguage(ci)
    …..

    none of this is working. ceremony is always in English.
    What is wrong?

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    Hi,

    If the signer has an esignlive account, the language will default to the language he has set in his account.


    Haris Haidary
    OneSpan Technical Consultant
    Participant
    dlukic
    Regular Member
    Member since: 04.12.2015
    Number of posts: 46

    Score

    0

    i have tested this before and it worked but now is not working.
    i thought that something changed on the back end.
    did you try it? or this is from memory:).

    My expectation is that is if package creator did not set package lagugae it would be created under language specified in profile.
    If signer specifies language during package creation it would overwrite one from profile and package will be created under specified culture.

    Please take a look at the code above and tell me if i’m doing something wrong since its not working

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    So you’re saying that even when you are setting French as a language for the users’ esignlive account, the package will default to English for this user? If so, can you share a package id as an example please.


    Haris Haidary
    OneSpan Technical Consultant
    Participant
    dlukic
    Regular Member
    Member since: 04.12.2015
    Number of posts: 46

    Score

    0

    https://sandbox.e-signlive.ca

    packageId=hNYxtbmoN5T3MwtgZhuyFzspGt8=
    documentId=1ca247f4-2506-4c74-b62e-25311636c54a

    it seems when i create user user is not created under specified culture. please review code above.

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    Hi Dejan,

    I am not able to reproduce your issue. I was able to successfully create a user with a specified language. The scenario that I tested was the following:

    1. Create new user with French language
    2. Create package with language in English
    3. Open signing session for new user

    Result: Signing session is in French and this is expected.

    Did you create a support ticket to help you further troubleshoot this?


    Haris Haidary
    OneSpan Technical Consultant
    Participant
    dlukic
    Regular Member
    Member since: 04.12.2015
    Number of posts: 46

    Score

    0

    2 important questions
    are u using Rest or SDK?
    if you using SDK please provide code snippet

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    For the user invite, I’ve essentially used the same code as you. Here’s my package creation code:

    DocumentPackage pkg = PackageBuilder.NewPackageNamed("test language package")
        .WithSenderInfo(SenderInfoBuilder.NewSenderInfo("john.smith@mailinator.com"))
        .WithLanguage(new System.Globalization.CultureInfo("en"))
        .WithSigner(SignerBuilder.NewSignerWithEmail("john.smith@mailinator.com")
            .WithFirstName("John")
            .WithLastName("Smith")
            .SigningOrder(1))
        .WithSigner(SignerBuilder.NewSignerWithEmail("mail33@mailinator.com")
            .WithFirstName("Patty")
            .WithLastName("Galant")
            .SigningOrder(0))
        .WithDocument(DocumentBuilder.NewDocumentNamed("test")
            .FromFile("C:/Users/hhaidary/Desktop/pdfs/doc1.pdf")
            .WithSignature(SignatureBuilder.SignatureFor("john.smith@mailinator.com")
                .AtPosition(100, 100))
            .WithSignature(SignatureBuilder.SignatureFor("mail33@mailinator.com")
                .AtPosition(100, 200))
                )
        .Build();
    
    PackageId packageId = eslClient.CreateAndSendPackage(pkg);
    
    Debug.WriteLine(packageId);

    Haris Haidary
    OneSpan Technical Consultant
    Participant
    dlukic
    Regular Member
    Member since: 04.12.2015
    Number of posts: 46

    Score

    0

    package id : K6AR_UtHkngV240E38IVfOAaV8I=
    you can see that package is created in french. On signature it says ‘Signe par E 02 Broker ‘….
    Client gets invitation to sign in French.
    i think this proves that package is created in French.
    But still designer was in English. Whatever i do designer is always in English.

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    Ah this is for the designer… I will have to test and get back to you. From your original post, it sounded like you were talking about the signing ceremony.


    Haris Haidary
    OneSpan Technical Consultant
    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    I am getting the correct language for the designer as well. Here’s the code that I used:

    EslClient eslClient = new EslClient("api_key", "https://sandbox.e-signlive.ca/api");
    
    AccountMember member = AccountMemberBuilder.NewAccountMember("john.smith@mailinator.com")
        .WithFirstName("John")
        .WithLastName("Smith")
        .WithLanguage("fr")
        .WithStatus(SenderStatus.ACTIVE).Build();
    
    Sender sender = eslClient.AccountService.InviteUser(member);
    
    DocumentPackage pkg = PackageBuilder.NewPackageNamed("test language package")
        .WithSenderInfo(SenderInfoBuilder.NewSenderInfo("john.smith@mailinator.com"))
        .WithLanguage(new System.Globalization.CultureInfo("en"))
        .WithSigner(SignerBuilder.NewSignerWithEmail("john.smith@mailinator.com")
            .WithFirstName("John")
            .WithLastName("Smith")
            .SigningOrder(1))
        .WithSigner(SignerBuilder.NewSignerWithEmail("mail33@mailinator.com")
            .WithFirstName("Patty")
            .WithLastName("Galant")
            .SigningOrder(0))
        .WithDocument(DocumentBuilder.NewDocumentNamed("test")
            .FromFile("C:/Users/hhaidary/Desktop/pdfs/doc1.pdf")
            .WithSignature(SignatureBuilder.SignatureFor("john.smith@mailinator.com")
                .AtPosition(100, 100))
            .WithSignature(SignatureBuilder.SignatureFor("mail33@mailinator.com")
                .AtPosition(100, 200))
                )
        .Build();
    
    PackageId packageId = eslClient.CreatePackage(pkg);
    
    Debug.WriteLine(packageId);

    I then created a sender authentication token:

    POST https://sandbox.e-signlive.ca/api/authenticationTokens/sender
    
    {
    	"packageId": "GQRSD8Fnt-YW5izYa-R9Fa0U6Fg="
    }

    And built the following URL: https://sandbox.e-signlive.ca/auth?authenticationToken=NzI5NmJlM2QtMGE2Yy00N2Q1LTg1MWItMjNhMjE1YzQzYTYx&target=https://sandbox.e-signlive.ca/a/transaction/GQRSD8Fnt-YW5izYa-R9Fa0U6Fg=/designer

    I get the designer in French as expected.


    Haris Haidary
    OneSpan Technical Consultant
    • This reply was modified 3 months ago by  Haris.
    Participant
    dlukic
    Regular Member
    Member since: 04.12.2015
    Number of posts: 46

    Score

    0

    please veirfy for
    packageId=5tPGCMGLrS-szA4JP7y7_lKjVVo=
    this package is created by french user as french package

    Participant
    dlukic
    Regular Member
    Member since: 04.12.2015
    Number of posts: 46

    Score

    0

    this might need to be added:
    i’m using iFrame to integrate signing ceremony into our application.

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    Can you please let me know what is not showing in the correct language? The Signing Ceremony (where the signing of documents happen) or the Designer (where the sender places the signatures)?

    Thank you.


    Haris Haidary
    OneSpan Technical Consultant
    Participant
    dlukic
    Regular Member
    Member since: 04.12.2015
    Number of posts: 46

    Score

    0

    if you open the package which id i have provided
    you can see document that is signed.
    also as you can see signature is in french – meaning the package is created in french language (culture).
    but UI is still English. UI was also English during designing phase.

You must be logged in to reply to this topic.