Skip to content

Commit

Permalink
Add missing parameter (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
srmklive authored Oct 17, 2017
1 parent 711cd1c commit 839e839
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Traits/PayPalTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ public function getTransactionDetails($transaction)
*
* @param string $transaction
* @param string $action
* @param float $amount
*
* @return array
*/
public function doReferenceTransaction($transaction, $action)
public function doReferenceTransaction($transaction, $action, $amount = 0.00)
{
$this->setRequestData([
'REFERENCEID' => $transaction,
'PAYMENTACTION' => $action,
'AMT' => $amount,
]);

return $this->doPayPalRequest('DoReferenceTransaction');
Expand Down

0 comments on commit 839e839

Please sign in to comment.