Ask the court if you can make payments. They usually have a payment plan but will tack on an accounts receivable fee. Also ask to see if you can get the court fine lowered. Many times you can. Have you made your court appearance yet? If not, put yourself on calendar and explain to the judge your situation, many times the courts will work with people. This is an infraction, so you will not be put in jail, however, a failure to pay a court fine can if you fail to keep up with the payments. If you have no other traffic violations see if you can also go to traffic school, this also will cost a fee. Best of luck to you.
NO ONE WILL SEND YOU TO JAIL OVER A CURRENT TRAFFIC TICKET. Ask the judge for an extension of time to pay, and ask if you can make payments. He or she WILL say, "yes." People who don't have the money at the moment show up in court all the time. This is how the court WANTS you to handle it!
A traffic ticket has no immigration consequences, BUT GOING TO JAIL MIGHT, especially if someone puts an immigration hold on you. You could be longer getting out than you plan on. Do NOT go to jail; go directly to traffic court, and ask the judge for an extension of time to pay.
You are doing exactly as you should. Good luck!