Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • A authnet
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Extensions
  • authnet
  • Merge requests
  • !22

handle recurring installments = 0

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged JonGold requested to merge JonGold/authnet:zero-installments into master May 02, 2022
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 1

Currently, passing a param installments = 0 to Order.create results in an error:

E00003: The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:totalOccurrences' element is invalid - The value '0' is invalid according to its datatype 'Short' - The MinInclusive constraint failed. 

According to webform_civicrm, "#installments = 0 (or not set) in CiviCRM Core means open ended commitment". There's a recent test locking in this behavior.

I'm having a bit of trouble confirming this based on code in core, but I trust @KarinG on this.

This MR correctly handles passing a value of 0 to installments on a recurring contribution.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: zero-installments