#chargedawoop
1 messages · Page 1 of 1 (latest)
hello! can you share an example PaymentIntent id for me to take a look?
I'm currently using the stripe cli for testing so not sure what you mean.
I'm unable to create a payment link specific payment_intent.succeeded event with the stripe cli, and I also cannot add metadata or a description with the CLI afaik
i'd suggest not using the Stripe CLI for your testing, the generated payment_intent.succeeded event generated by the CLI is not from a Payment Link. You can see here : https://github.com/stripe/stripe-cli/blob/master/pkg/fixtures/triggers/payment_intent.succeeded.json how the event is generated
you would want to create a Payment Link, make payment with a test card and examine the corresponding events and objects for the information you want
so i need to setup a webhook on a server then
just to test, correct?
since I can not add a webhook endpoint that is on localhost
you can use the Stripe CLI to forward webhooks to your localhost : https://stripe.com/docs/webhooks/quickstart
look at section 3 which is about how to Test the webhook
you can forward events to your localhost e.g. stripe listen --forward-to localhost:4242/webhook
yes that's how i'm currently testing it, but there is no event associated with payment links that has to do with payment that I can generate with the CLI, so i assumed it would be a payment_intent event
if you use the Stripe CLI to forward webhooks to your localhost, it will forward all events from your account to your localhost endpoint (even those not triggered by the CLI)
i suggest you create a Payment Link, make payment with a test card now to see how it works
oh i see, I did not know that
ok I'll try that. Would you suggest I just make payment_intent objects rather than payment links? the only reason I was leaning to payment links is because of the included payment UI
like what you mentioned, Payment Links are essentially a hosted Stripe payment page
yes very handy
if you want to customize it, then you would build your own payment page. Building your own payment page and designing it is going to take more time and effort. It's entirely up to you.