OpenPay does not return data from a query, it marks me private data

0

I am trying to consult the information of a client in Openpay, however it does not return any data to me, if I show the variable with a var_dump it tells me that the Openpay type object is hidden. Someone who can support me to show this data. Greetings!

require(dirname(__FILE__) . '/Openpay/Openpay.php');
require(dirname(__FILE__).'/PData/Account.php');

//Header Section
header('Content-Type: application/json');
$body = json_decode(file_get_contents("php://input"), true);

//Define the response object
$response = array();
$uid = $body['id'];

if(!is_null($uid)){
    //Set Production Mode
Openpay::setProductionMode($OPENPAY_PRODUCTION_MODE);

//Init Openpay instance
$openpay = Openpay::getInstance($merchanid,$key_private);

//Get the customer data
$customer = $openpay->customers->get($uid);
json_encode($customer);
    
asked by Uriel Cambron 29.07.2018 в 18:22
source

0 answers