public function refund($Context, $id, $amount, $context = array())
	{
		$url = str_replace('<id>', $id, QuickBooks_Payments::URL_REFUND);

		$payload = array(
			'amount' => $amount,
			'context' => array(
				'mobile' => false,
				'isEcommerce' => false,
				'recurring' => false,
				),
			);

		$resp = $this->_http($Context, $url, json_encode($payload));

		$data = json_decode($resp, true);

		if ($this->_handleError($data))
		{
			return false;
		}

		return new QuickBooks_Payments_Transaction($data);
	}
public function refund($Context, $id, $amount, $context = array())
	{
		$url = str_replace('<id>', $id, QuickBooks_Payments::URL_REFUND);

		$payload = array(
			'amount' => $amount,
			'context' => array(
				'mobile' => false,
				'isEcommerce' => false,
				'recurring' => false,
				),
			);

		$resp = $this->_http($Context, $url, json_encode($payload));

		$data = json_decode($resp, true);

		if ($this->_handleError($data))
		{
			return false;
		}

		return new QuickBooks_Payments_Transaction($data);
	}
public function refund ( $ Context , $ id , $ amount , $ context = array ( ) ) { $ url = str_replace ( '<id>' , $ id , QuickBooks_Payments :: URL_REFUND ) ; $ payload = array ( 'amount' => $ amount , 'context' => array ( 'mobile' => false , 'isEcommerce' => false , 'recurring' => false , ) , ) ; $ resp = $ this -> _http ( $ Context , $ url , json_encode ( $ payload ) ) ; $ data = json_decode ( $ resp , true ) ; if ( $ this -> _handleError ( $ data ) ) { return false ; } return new QuickBooks_Payments_Transaction ( $ data ) ; }
Refund a transaction

@param  [type] $Context [description]
@param  [type] $id      [description]
@param  [type] $amount  [description]
@param  array  $context [description]
@return [type]          [description]
Refund a transaction