#bassochette
1 messages · Page 1 of 1 (latest)
👋 Hi there, Happy to help!
I'd like to generate a payment link form a payment intent and not a subscription
Is there a specific use case you're trying to account for?
Because you can't create a PaymentLink fomr a PaymentIntent, just create a PaymentLink and for each customer purchase a new PaymentIntent will be created then:
https://stripe.com/docs/payments/payment-links
https://stripe.com/docs/api/payment_links/payment_links/create
You can set one time prices in the PaymentLink
https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-line_items-price
My client is selling car insurances and every client have a different price.
Our brokers, will need to generate payment links for the upfront payment.
recurring payment will be handled after and they need to use their internal billing system to be compliant.
Ok I see, you can't generate Payment Links from PaymentIntents. A PaymentLink is generated once but can be used by multiple customers. I don't think this is the right choice for your use case. You probably need to create a webpage using Stripe Elements in order to charge the customer according to the related PaymentIntent
https://stripe.com/docs/payments/elements
https://stripe.com/docs/payments/quickstart
ok thanks for your help