No envia SMS al Numero Personalizado
-
Saludos,
Les comento que cuando se activa la casilla de ?Enviar un SMS al móvil de envío?: y se selecciona “Telefono Celular” el cual seria mi campo personalizado el mismo no envia el SMS, adicionalmente tuve que hacer unos cambios para que funcionara el envio por clickatell:
case “clickatell”:
$url = add_query_arg( [
‘apiKey’ => $apg_sms_settings[ ‘identificador_clickatell’ ],
/* ‘user’ => $apg_sms_settings[ ‘usuario_clickatell’ ],
‘password’ => $apg_sms_settings[ ‘contrasena_clickatell’ ],*/
‘to’ => $telefono,
‘content’ => apg_sms_codifica_el_mensaje( $mensaje ),
], ‘https://platform.clickatell.com/messages/http/send’ );
$respuesta = wp_remote_get( $url );
break;Debug de campo Vacio:
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
(
[server] => nginx
[date] => Thu, 30 Apr 2020 15:28:44 GMT
[content-type] => application/json
[content-length] => 45
[strict-transport-security] => max-age=31536000; includeSubDomains
))
[body] => [{“error”:”arg2: Recipient may not be null”}]
[response] => Array
(
[code] => 400
[message] => Bad Request
)[cookies] => Array
(
)[filename] =>
[http_response] => WP_HTTP_Requests_Response Object
(
[response:protected] => Requests_Response Object
(
[body] => [{"error":"arg2: Recipient may not be null"}]
[raw] => HTTP/1.1 400 Bad Request
Server: nginx
Date: Thu, 30 Apr 2020 15:28:44 GMT
Content-Type: application/json
Content-Length: 45
Connection: close
Strict-Transport-Security: max-age=31536000; includeSubDomains[{"error":"arg2: Recipient may not be null"}]
[headers] => Requests_Response_Headers Object
(
[data:protected] => Array
(
[server] => Array
(
[0] => nginx
)[date] => Array
(
[0] => Thu, 30 Apr 2020 15:28:44 GMT
)[content-type] => Array
(
[0] => application/json
)[content-length] => Array
(
[0] => 45
)[strict-transport-security] => Array
(
[0] => max-age=31536000; includeSubDomains
))
)
[status_code] => 400
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://platform.clickatell.com/messages/http/send?apiKey=N1HuwSfsQnqbB1cTGoi_6A==&content=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] =>
))
- The topic ‘No envia SMS al Numero Personalizado’ is closed to new replies.