#RonnySteelman
1 messages · Page 1 of 1 (latest)
Can you clarify what you're trying to do? Are you trying to re-create some test objects in another account?
@tacit hornet - I created Products, Plans, and Pricing in Stripe. I had a webhook to localhost dev using Stripe CLI, which synced the creation of all of those to my localhost database.
I move localhost to a UAT environment, on public web, for user acceptance testing. It is connected to Stripe Test and webhooks are set up...but I need to re-push Products, Plans, and Prices to the UAT webhook so they go into the database.
If I had deployed to Production and hooked it up, I could go into each Product, Plan, and Price in Stripe.com and select the option to push those to Stripe Production. It would recreate the records in production and trigger the webhook...but i can't do that in test, from what I can see
Are you trying to re-send previously delivered webhook notifications to another endpoint?
If you're using the same Stripe test account, those objects already exist and don't need to be recreated. Any reflection of those objects stored in your application database are of course separate, and might require you to reproduce.
Gotcha - ok in that case you can use the CLI to resend the events:
https://stripe.com/docs/cli/events/resend
So I need to go through and find each event already triggered and pass them to that command?
You will want to specify the target --webhook-endpoint=we_123 for the new endpoint:
https://stripe.com/docs/cli/events/resend#events_resend-webhook-endpoint
If that's what you're trying to do here, yes. I suspect that you might be better simply creating new Products/Prices etc in your test account once your new endpoint is configured and letting everything else happen ~naturally.