Before the trial, with the consent of the defendant, or at the trial on entry of a plea of guilty, or after conviction, instead of imposing the penalties hereinbefore provided, or in addition thereto, the judge, in his discretion, having regard to the circumstances of the case and to the financial ability or earning capacity of the defendant, shall have the power to make an order, directing the defendant to pay a certain sum or a certain percentage of his or her earnings periodically, either directly or through the court to the spouse or to the guardian, curator or custodian of such minor child or children, or to an organization or individual designated by the court as trustee, and to suspend sentence and release the defendant from custody on probation, upon his or her entering into a recognizance with or without surety, in such sum as the court may order and approve.
Va. Code § 20-72