Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Commit

Permalink
Fix missing amount in contrib record
Browse files Browse the repository at this point in the history
  • Loading branch information
johntwyman committed Aug 22, 2018
1 parent c88d6f8 commit 1a4a3db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Raisely/Page/Raisely.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ private function _parseContribution($json) {
$contribution[$civicrm_match_keys[$key]] = $data[$key];
}
}
if (array_key_exists('amount', $json['data'])) {
$contribution['total_amount'] = CRM_Utils_Money::format($json['data']['amount'] / 100, 'AUD', NULL, TRUE);
if (array_key_exists('amount', $json['data']['data'])) {
$contribution['total_amount'] = CRM_Utils_Money::format($json['data']['data']['amount'] / 100, 'AUD', NULL, TRUE);
}
return $contribution;
}
Expand Down

0 comments on commit 1a4a3db

Please sign in to comment.