WordPress.org

Forums

WooCommerce Moip
[resolved] Caracteres estranhos (6 posts)

  1. astartar
    Member
    Posted 1 year ago #

    Na hora do pagamento, a validação retorna as seguintes mensagens com caracteres estranhos:
    Informe o código de segurança do cartão
    Informe o número do cartão

    Isso já aconteceu para vocês? já pesquisei em todos os arquivos não encontrei essas mensagens em nenhum, deve ser um retorno do Moip mas não sei como corrigir esse caracteres.

    Obrigada

    https://wordpress.org/plugins/woocommerce-moip/

  2. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    This is coming from Moip.
    What is the charset of your website?
    Post the link of the site, please.

  3. astartar
    Member
    Posted 1 year ago #

    The charset is UTF-8.
    My website is http://goo.gl/mvJZJH.

    Thank you

  4. Claudio Sanches
    Member
    Plugin Author

    Posted 1 year ago #

    Strange, because it was to work then.
    But it can still be a problem coming from your theme.

  5. BrunoSousa
    Member
    Posted 2 months ago #

    @astartar,
    I have the same problem. I already tried to change the charset to ISO-8859-1 on the "transparent-checkout.php", at the lines that call the Moip javascript (almost on the last code lines). Doesn't worked.

    Did you solved this issue? Please, share the fix if you can.

    My bests.

  6. BrunoSousa
    Member
    Posted 2 months ago #

    Hi,

    I think I've found the solution. On the "transparent-checkout.php", at the lines that call the Moip Javascript, the Charset is written wrong. See:

    <?php if ( 'yes' == $this->sandbox ) : ?>
    	<script type="text/javascript" src="https://desenvolvedor.moip.com.br/sandbox/transparente/MoipWidget-v2.js" charset="UFT-8"></script>
    <?php else : ?>
    	<script type="text/javascript" src="https://www.moip.com.br/transparente/MoipWidget-v2.js" charset="UFT-8"></script>
    <?php endif; ?>

    The letters are inverted. Just change the UFT-8 to UTF-8. Hope can help anyone.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.