#StephenCollins
1 messages · Page 1 of 1 (latest)
So you want to have access to the payment link id on the success_url? Is that right?
correct
You can just add it as a query param manually via the api: https://stripe.com/docs/api/payment_links/payment_links/update#update_payment_link-after_completion-redirect-url
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Oh, you mean the thing that staring me right in the face in the docs that I didn't even notice. Ha. Thanks.
No worries
Is there a way to update the description so that it doesn't just say pi_XXXXXXXX?
You want it to be dynamic (per Payment Intent) or just all the same value?
Same value will probably work
Seems like there is a way to do it with the Line Item maybe, but I can't format it properly.
That is in the Payment Link. I think I was going down the wrong path.
Basically, I have very non-technical people who go into the Stripe dashboard and when they see 'pi-xxxxxxxx', they have no idea what that is.
I am hoping there is a way in the Payment Link to set it so that is says something more meaningful.
Got it. So these are all the options for creating a payment link: https://stripe.com/docs/api/payment_links/payment_links/create. Unfortunately it doesn't look like there's a way to set the PI description
You could always use webhooks to listen for PI creation and then update the description though
But that may be more lift than you want
But all the link gives me is the {CHECKOUT_SESSION_ID} and there is no way to update a session.
No I mean that a payment intent is created under the hood. So, you can use webhooks https://stripe.com/docs/webhooks to listen to payment_intent.created. Then you can update that payment intent