It's super easy to buy a gun online. The part that is not easy is getting around the step where it has to be shipped to someone or something (company) that has a federal firearms license, which then is supposed to perform the background check on you before handing over the weapon you paid for. But there's myriad websites that will happily take your credit card info and ship anything that's not NFA class 3 to the FFL of your choice.