[Resuelto] Como puedo obtener el validation_status

Iniciado por shamaka, 12 Mayo 2018, 18:59 PM

0 Miembros y 1 Visitante están viendo este tema.

shamaka

tengo esto en json y me gustaría obtener solo el Estatus de validación: Esta linea ["validation_status"]=>

Código (php) [Seleccionar]
object(stdClass)#4 (15) {
 ["correlation_id"]=>
 string(17) "124.2614218067210"
 ["transaction_status"]=>
 string(8) "approved"
 ["validation_status"]=>
 string(7) "success"
 ["transaction_type"]=>
 string(8) "purchase"
 ["transaction_id"]=>
 string(8) "ET160443"
 ["transaction_tag"]=>
 string(10) "2256076121"
 ["method"]=>
 string(11) "credit_card"
 ["amount"]=>
 string(3) "100"
 ["currency"]=>
 string(3) "USD"
 ["token"]=>
 object(stdClass)#5 (2) {
   ["token_type"]=>
   string(7) "FDToken"
   ["token_data"]=>
   object(stdClass)#6 (1) {
     ["value"]=>
     string(16) "2391470664971221"
   }
 }
 ["card"]=>
 object(stdClass)#7 (4) {
   ["type"]=>
   string(4) "visa"
   ["cardholder_name"]=>
   string(13) "Jhon Smit"
   ["card_number"]=>
   string(4) "1111"
   ["exp_date"]=>
   string(4) "1024"
 }
 ["bank_resp_code"]=>
 string(3) "100"
 ["bank_message"]=>
 string(8) "Approved"
 ["gateway_resp_code"]=>
 string(2) "00"
 ["gateway_message"]=>
 string(18) "Transaction Normal"
}
Con temor a Dios y sin miedo al hombre

shamaka

Solucionado: $response->validation_status;
Con temor a Dios y sin miedo al hombre