Forum Replies Created

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

    (@teosala)

    Saludos

    Con respecto al campo personalizado, se llama billing_celular el mismo es mostrado en la configuración del plugin pero no toma envia el sms

    —debug—-

    Teléfono móvil:

    Mensaje:
    ImprePIDE: Su orden # PW-2084 se esta PROCESANDO, recuerde que son 5 dias habiles luego de aprobar el arte y pagar el 100% del pedido para la entrega del mismo.

    Respuesta del proveedor:
    Array
    (
    [headers] => Requests_Utility_CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [date] => Thu, 30 Apr 2020 17:42:20 GMT
    [server] => Apache
    [access-control-allow-origin] => *
    [content-length] => 37
    [content-type] => text/html; charset=UTF-8
    )

    )

    [body] => ERR: 105, Invalid Destination Address
    [response] => Array
    (
    [code] => 200
    [message] => OK
    )

    [cookies] => Array
    (
    )

    [filename] =>
    [http_response] => WP_HTTP_Requests_Response Object
    (
    [response:protected] => Requests_Response Object
    (
    [body] => ERR: 105, Invalid Destination Address
    [raw] => HTTP/1.1 200 OK
    Date: Thu, 30 Apr 2020 17:42:20 GMT
    Server: Apache
    Access-Control-Allow-Origin: *
    Content-Length: 37
    Connection: close
    Content-Type: text/html; charset=UTF-8

    ERR: 105, Invalid Destination Address
    [headers] => Requests_Response_Headers Object
    (
    [data:protected] => Array
    (
    [date] => Array
    (
    [0] => Thu, 30 Apr 2020 17:42:20 GMT
    )

    [server] => Array
    (
    [0] => Apache
    )

    [access-control-allow-origin] => Array
    (
    [0] => *
    )

    [content-length] => Array
    (
    [0] => 37
    )

    [content-type] => Array
    (
    [0] => text/html; charset=UTF-8
    )

    )

    )

    [status_code] => 200
    [protocol_version] => 1.1
    [success] => 1
    [redirects] => 0
    [url] => https://api.clickatell.com/http/sendmsg?api_id=************_6A==&user=contacto@*****.com&password=*****&to&text=ImprePIDE%3A+Su+orden+%23+PW-2084+se+esta+PROCESANDO%2C+recuerde+que+son+5+dias+habiles+luego+de+aprobar+el+arte+y+pagar+el+100%25+del+pedido+para+la+entrega+del+mismo.
    [history] => Array
    (
    )

    [cookies] => Requests_Cookie_Jar Object
    (
    [cookies:protected] => Array
    (
    )

    )

    )

    [filename:protected] =>
    [data] =>
    [headers] =>
    [status] =>
    )

    )
    --- fin del debug----

    Fue borrado el apiID, el usuario y la contraseña.

    Yo realice unos cambios en el archivo: apg-sms.php sustituyendo todos los campos billing_phone por billing_celular y he logrado que envie el SMS, pero aunque lo envia me genera el siguiente warning en el hosting:
    Captura de pantalla: https://imprepide.com/wp-content/uploads/2020/04/Captura-de-Pantalla-2020-04-30-a-las-1.47.57-p.-m..png

    [30-Apr-2020 16:08:13 UTC] billing_celular was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_BACS->process_payment, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_on-hold'), WP_Hook->do_action, WP_Hook->apply_filters, apg_sms_procesa_estados, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
    [30-Apr-2020 16:08:16 UTC] billing_celular was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Gateway_BACS->process_payment, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action('woocommerce_order_status_pending_to_on-hold'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array('woocommerce_order_status_pending_to_on-hold_notification'), WP_Hook->do_action, WP_Hook->apply_filters, apg_sms_procesa_estados, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.

    teosala

    (@teosala)

    Saludos Amigos de Art Project Group

    Con respecto al API de Clickatell me di cuenta que cuando metes el apikey debes colocar un tercer simbolo de igual(=) al final en el identificador de cuenta porque solo lee un solo simbolo de igual(=) adjunto foto para mejor entendimiento.

    —-Debug—-

    584242******

    Mensaje:
    ImprePIDE: Hemos generado el pedido #: PW-2084 recuerde que tiene 2 dias habiles para formalizar el pago.

    Respuesta del proveedor:
    Array
    (
    [headers] => Requests_Utility_CaseInsensitiveDictionary Object
    (
    [data:protected] => Array
    (
    [date] => Thu, 30 Apr 2020 17:28:58 GMT
    [server] => Apache
    [access-control-allow-origin] => *
    [content-length] => 36
    [content-type] => text/html; charset=UTF-8
    )

    )

    [body] => ID: 651fd0966c284d69942de2a15ba6a54f
    [response] => Array
    (
    [code] => 200
    [message] => OK
    )

    [cookies] => Array
    (
    )

    [filename] =>
    [http_response] => WP_HTTP_Requests_Response Object
    (
    [response:protected] => Requests_Response Object
    (
    [body] => ID: 651fd0966c284d69942de2a15ba6a54f
    [raw] => HTTP/1.1 200 OK
    Date: Thu, 30 Apr 2020 17:28:58 GMT
    Server: Apache
    Access-Control-Allow-Origin: *
    Content-Length: 36
    Connection: close
    Content-Type: text/html; charset=UTF-8

    ID: 651fd0966c284d69942de2a15ba6a54f
    [headers] => Requests_Response_Headers Object
    (
    [data:protected] => Array
    (
    [date] => Array
    (
    [0] => Thu, 30 Apr 2020 17:28:58 GMT
    )

    [server] => Array
    (
    [0] => Apache
    )

    [access-control-allow-origin] => Array
    (
    [0] => *
    )

    [content-length] => Array
    (
    [0] => 36
    )

    [content-type] => Array
    (
    [0] => text/html; charset=UTF-8
    )

    )

    )

    [status_code] => 200
    [protocol_version] => 1.1
    [success] => 1
    [redirects] => 0
    [url] => https://api.clickatell.com/http/sendmsg?api_id=N1HuwSfsQnqbB1cTGoi_6A==&user=contacto@*****.com&password=&to=58424*****&text=ImprePIDE%3A+Hemos+generado+el+pedido+%23%3A+PW-2084+recuerde+que+tiene+2+dias+habiles+para+formalizar+el+pago.
    [history] => Array
    (
    )

    [cookies] => Requests_Cookie_Jar Object
    (
    [cookies:protected] => Array
    (
    )

    )

    )

    [filename:protected] =>
    [data] =>
    [headers] =>
    [status] =>
    )

    )

    --- Fin del Debug----

    Fue eliminado el Password, Usuario y el Celular del link que genera el plugin por razones de seguridad.

    Captura de Pantalla: https://imprepide.com/wp-content/uploads/2020/04/Captura-de-Pantalla-2020-04-30-a-las-1.29.53-p.-m..png

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