#venkateshjsoft
1 messages · Page 1 of 1 (latest)
Hi there, how can I help?
Hi
I would like to generate payment link so I can attach this link to the email when we send email to our users. This way the user can pay directly to Stripe instead of logging in to our application
is there a solutioin for this
Note: we are not using Stripe billing/Subscription
Sure, you can create a PaymentLink from API or through Dashboard https://stripe.com/docs/payment-links
but we are not using stripe subscriptions or billing
do you think stil I can use this?
as per the steps to create payment link. i should create a product, pricing etc
also I dont understand how this link is associated to the customer Im intent to charge
I don't think you need to activate Stripe subscriptions or billing in order to use Payment Link
Were you asked to activate Stripe subscriptions or billing?
when I checked api, its asking to provide product id and price id
what I want is, I want to generate payment link for a customer with some price and sent to the customer
when they click and pay we receive amount
Yes you need to provide the product iD and price ID when creating a payment link through API. Perhpas you want to set the price to $1 and enable adjustable_quantity (https://stripe.com/docs/api/payment_links/payment_links/create?lang=node#create_payment_link-line_items-adjustable_quantity) to allow your customer to set the quantity by themselve?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
product id is something I can generate on the fly?
product id and price id?
or I need to define them before
You need to create them upfront
if I have to create a product then i should have billing system enabled or subscription right
correct me if I my understand
if I create a product/price via api and then immediately call the payment link, will it work
can I use the same product id for the other customer
No I don't think so, have you tried?
not yet
let me try now
can you plz confirm how can I attach this payment link with the customer id
No you can't attach payment link with a customer ID. Are you talking about limit customers to one subscription? https://stripe.com/docs/payments/checkout/limit-subscriptions
actually we want to give this link to our customer who couldnt pay our renewal fee
we have our own subscription model, we are using Stripe as a Payment provider only
we will share this payment link to our customer via email to pay the renewal fee thats it
when they pay, we will extend our service
Hmm, but just now you said you are NOT using Stripe billing, how do you implement the renewal?
we have our own renewal process
we have a crone job which check the renewal date and collect the renewal fee from our customer
during this process, if customer bank account doenst have enough balance or bank account is expired
we will send email with payment link option to retry the payment
Ok. I'd highly recommend you to consider using Stripe billings, you can save lots of time and can focus on more on your business.
we dont have any immediate plan to use stripe billing at the moment
lets go back to the orignal issue
is it possible to create payment link and attach to the customer
we have customer id in our system already
No
then how would I measure if the customer paid using the payment link
I see in the background new payment intent and charge is created
when customer pay using the link
is there way I can attach the customer id with the payment intent
if customer pay using the link, and if customer payment is not linked, then it will be difficult for us to know whether this paritcular custome is paid or not
Yes you can do that. You can listen to payment_intent.succeeded event and set a customer ID to the payment intent.
you mean update the payment intent?
Yes
how would i know if this particular payment intent is genereated due to the payment link?
is there are link ?
You need to do some work
- get the checkout session from the payment intent https://stripe.com/docs/api/checkout/sessions/list?lang=node#list_checkout_sessions-payment_intent
- check if the checkout session has a payment link https://stripe.com/docs/api/checkout/sessions/object?lang=node#checkout_session_object-payment_link
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.