I found a solution. This is the steps I took. (I assume precondition is a working sandbox integration from vercel/v0)
I deleted the sandbox in vercel –> that meant it was disconnected also from the v0 project.
In the v0 project I did not install the stripe integration again (even though it asked me to). Instead I manually added the following 3 keys to the environement variabels:
STRIPE_SECRET_KEY
- Your live Stripe secret key (starts with
sk_live_ for production or sk_test_ for test mode)
- Example:
sk_live_xxxxxxxxxxxxxxxxxxxxx
- Found in: Stripe Dashboard → Developers → API Keys
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY
- Your live Stripe publishable key (starts with
pk_live_ for production or pk_test_ for test mode)
- Example:
pk_live_xxxxxxxxxxxxxxxxxxxxx
- Found in: Same location as secret key
STRIPE_PUBLISHABLE_KEY (optional but recommended)
- Same value as above, just without the
NEXT_PUBLIC_ prefix
I then redeployed the app.
After that I let v0 create a script to add a product in stripe (as a test) which worked. I probably could have created the product myself in stripe.
Then let v0 update the product Id and price Id.
And finally I added a different payment configuration.
At the beginning of the process I also signed up for Vercel Pro (but not sure if that made a difference, at least nothing I could see actually changed)