From 0175ae5f744a54672034f87c231a9d32b9a8ecba Mon Sep 17 00:00:00 2001 From: LuisGB2212 <47278714+LuisGB2212@users.noreply.github.com> Date: Thu, 25 Nov 2021 11:45:19 -0600 Subject: [PATCH] _updateCharge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Error en la función _updateCharge no existe $this->getResourceUrl() cambie por $this->getUrl() para obetener la URL --- data/OpenpayApiResourceBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/OpenpayApiResourceBase.php b/data/OpenpayApiResourceBase.php index 545ae26..53b41ba 100644 --- a/data/OpenpayApiResourceBase.php +++ b/data/OpenpayApiResourceBase.php @@ -313,7 +313,7 @@ protected function _update() { protected function _updateCharge($params) { if (count($params)) { - $response = OpenpayApiConnector::request('put', $this->getResourceUrl(), $params); + $response = OpenpayApiConnector::request('put', $this->getUrl(), $params); return $this->refreshData($response); } } @@ -390,4 +390,4 @@ public function __get($key) { } -?> \ No newline at end of file +?>