• Resolved ariban99

    (@ariban99)


    i use authorize.net for my payments on our website. i was able to customer the message if a client gets an error due to bank declines etc.. i am trying to write the message in english and spanish with 2 or one line break in between. however, this code isnt working for a line break, can someone guide me with the correct code

    function wc_authnet_update_error_message1( $error_text, $error_messages ) {

    if ( !empty( $error_messages[0]['errorCode'] ) && $error_messages[0]['errorCode'] == 2 ) {
    $error_text = 'Your payment was declined. Please contact your credit card issuer to approve this transaction. Alternatively, select PayPal to pay with your card.\n\nSu pago fue rechazado. Por favor, póngase en contacto con el emisor de su tarjeta de crédito para aprobar esta transacción. Alternativamente, seleccione PayPal para pagar con su tarjeta.';
    }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.