Skip to content
Snippets Groups Projects
Commit 51f6eb9c authored by JonGold's avatar JonGold Committed by mattwire
Browse files

handle null balance trxn id when calculating fees

parent 914bcf7f
Branches
Tags
1 merge request!198handle null balance trxn id when calculating fees
......@@ -1434,7 +1434,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
* @return float
* @throws \Civi\Payment\Exception\PaymentProcessorException
*/
public function getFeeFromBalanceTransaction(string $balanceTransactionID, $currency): float {
public function getFeeFromBalanceTransaction(?string $balanceTransactionID, $currency): float {
$fee = 0.0;
if ($balanceTransactionID) {
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment