Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-21664

Contributions creation result in error for certain currencies

    Details

    • 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)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hfarooq Hassan Farooq
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: