Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.23, 4.7.29
-
Fix Version/s: 4.7.31
-
Component/s: CiviContribute, CiviCRM API
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Contributed Code
-
Verified?:Yes
Description
CMS: Drupal 7.56
Civicrm: 4.7.23
I tried to create a contribution using Civicrm API call, the API call looks like this:
$result = civicrm_api3('Contribution', 'create', array( 'financial_type_id' => "Donation", 'total_amount' => 100, 'contact_id' => 202, 'currency' => "RSD", ));
It gave error with error message:
"error_message": "Currency not a valid code: "
According to this stackexchange question: https://civicrm.stackexchange.com/questions/22278/adding-contributions-doesnt-work-for-certain-currencies the issue is also for following currencies:
- Serbian Dinar (RSD)
- Venezuela Bolivar (VEF)
- Azerbaijanian Manat (AZN)
- Mozambique Metical (MZN)