Coinbase is one of the exchanges that delisted XRP due to the ongoing SEC lawsuit. Therefore, you cannot buy XRP directly from Coinbase until the exchange relists the token. Alternatively, you can purchase XRP from regulated platforms like eToro.