#waqas - Payment LInks
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Payment links are not designed to be customer specific.
For customer specificity you are better off going with Checkout Sessions.
https://stripe.com/docs/payments/accept-a-payment?platform=web
But if you need to use payment links you can try to add information to the metadata parameter of the payment link and then look for it in the checkout.session.completed event.
https://stripe.com/docs/api/events/types#event_types-checkout.session.completed
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can we add directly custom price in payment links??
What do you mean?
You create payment links from Price records. What are you trying to accomplish?
Actually I have dynamic prices for different customers and I also want separate payment links for every customer. Who can I add price while generating payment links??
You cannot
Payment links are not designed for either of those use cases
You should use Checkout Sessions
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay... Thanks
Checkout sessions allow you to be specific to a single customer, allow you to dynamically define prices on your server, and offer the same interface as Payment Links
Yeah... I read the docs. It suits my requirements rather than payment links.