Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter xoutor

    (@xoutor)

    Bom dia.

    Após uma resposta nada esclarecedora do apoio técnico da EuPago, que apenas soube informar que a responsabilidade tinha que ser do cliente a colocar o contacto sem o indicativo nacional, deixo uma solu??o temporária para quem possa estar a ter este problema.

    EDITAR A FUN??O
    public function process_payment($order_id)
    EM
    /home/srcervejeiro/public_html/wp-content/plugins/eupago-gateway-for-woocommerce/includes/class-wc-eupago-mbway.php

    // Remover o indicativo “+351” do $mbway_phone
    $mbway_phone = preg_replace(‘/^+351/’, ”, $mbway_phone);

    No entanto vou tentar aprofundar uma solu??o para que esta se mantenha consistente com possiveis futuras atualiza??es do plugin.

    Hello.

    After a non-clarifying response from EuPago’s technical support, who only knew how to inform that the customer had to be responsible for placing the contact without the national code, I leave a temporary solution for anyone who may be having this problem.

    EDIT FUNCTION
    public function process_payment($order_id)
    IN
    /home/srcervejeiro/public_html/wp-content/plugins/eupago-gateway-for-woocommerce/includes/class-wc-eupago-mbway.php

    // Remove country code “+351” from $mbway_phone
    $mbway_phone = preg_replace(‘/^+351/’, ”, $mbway_phone);

    However, I will try to delve deeper into a solution so that it remains consistent with possible future plugin updates.

    Thread Starter xoutor

    (@xoutor)

    @endisha

    Thanks for the feedback.

    The payment gateway uses the checkout billing phone number and I ended up solving it using the preg_replace function as you indicated, but in the payment plugin files, when processing it.

    Even so, I’ll try to see how your proposed solution works because it seems to me that it’s more consistent with possible future plugin updates.

Viewing 2 replies - 1 through 2 (of 2 total)