Skip to content

Commit

Permalink
Implemented DoReauthorization API call
Browse files Browse the repository at this point in the history
  • Loading branch information
srmklive committed Oct 12, 2017
1 parent dc0f96e commit c6e71cb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Services/ExpressCheckout.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,27 @@ public function doCapture($authorization_id, $amount, $complete = 'Complete', $d
return $this->doPayPalRequest('DoCapture');
}

/**
* Perform a DoReauthorization API call on PayPal to reauthorize an existing authorization transaction.
*
* @param string $authorization_id
* @param float $amount
* @param array $data
*
* @return array
*/
public function doReAuthorization($authorization_id, $amount, $data = [])
{
$this->setRequestData(
array_merge($data, [
'AUTHORIZATIONID' => $authorization_id,
'AMOUNT' => $amount,
])
);

return $this->doPayPalRequest('DoReauthorization');
}

/**
* Perform a DoVoid API call on PayPal.
*
Expand Down

0 comments on commit c6e71cb

Please sign in to comment.