Before the expiration of the time for appeal, the appellant shall file a filing fee of ten dollars and a bond for costs on appeal or equivalent security to be approved by the court in a sum not less than one hundred dollars in any case, nor less than the amount of the judgment and costs, conditioned:
All other proceedings before the magistrate court in the matter shall cease and be stayed from the time of the filing of the undertaking.
If the appellant prevails, the court shall award the filing fee to the appellant as court costs.
SDCL 15-38-27