Gatsby uses reach router. Try the following:
import { navigate } from "@reach/router"
navigate(`/payment/${stripe_plan_id.id}`)
Gatsby uses reach router. Try the following:
import { navigate } from "@reach/router"
navigate(`/payment/${stripe_plan_id.id}`)