Skip to content
Commits on Source (2)
......@@ -125,9 +125,10 @@ class PPT
/**
* Refund accredited payment
* @param string $id
* @param string $amount
* @return array(json)
*/
public function refund_payment($id)
public function refund_payment($id, $amount)
{
$request = array(
"uri" => "/pagos/devolucion/{$id}",
......@@ -135,7 +136,8 @@ class PPT
"access_token" => $this->get_access_token()
),
"data" => array(
"type" => "online"
"type" => "online",
"amount" => $amount,
)
);
......