You cannot earn Star Coins in-game.
If you have a Star Rider subscription, you can receive Star Coins as a weekly allowance every Saturday and additional Star Coins can be purchased from our website. You can also purchase Star Coins from our apps; Star Stable Horses, Star Stable Friends, and Star Stable Online on mobile.