#Mohana-payment-link-sub
1 messages ยท Page 1 of 1 (latest)
Hey, that's not really how you'd use a Payment Link. What exactly are you trying to do?
In the website, we are showing the subscription status and if for some reason it is past due, we would like the user to navigate to the payment page and pay their dues
Got it. You pay/renew existing subscription invoices with a Payment Link โ that will jsut start a new subscription
We would like to show the payment route in the webpage so that the customer doesnt have to scramble and check their invoice emails
the payment link in invoice does that but we are looking for a straightforward apporach on the webpage
What you likely want to do is implement the Customer Portal: https://stripe.com/docs/billing/subscriptions/integrating-customer-portal
There they can pay overdue invoices
ohhh like open the invoice from customer portal and do the payment ?
"Hey your subscription is currently inactive ! you can pay for the subscription using this link!"
where the link is the subscription renewal payment link
is that possible today ?
Yep! You can integrate that
how ?
Steps are outlined here: https://stripe.com/docs/billing/subscriptions/integrating-customer-portal?platform=billing#start
so, the customer has to open the unpaid invoice and then pay right ?
from customer portal
You'd create a Customer Portal link using the cus_xxx ID, and from there they can manage their subscriptions and invoices, including paying any overdue invoices
in the customer portal, against the subscription i can only see update/cancel plan option
Where are you looking?
You can scroll down to Invoice History
They can open the Hosted Invoice Page from there and pay any open/overdue
aaahhhh thats what i was asking earlier ๐
that payment link can only be seen from an invoice right ?
its not possible to get that link and show it up somewhere in my webpage
Ah, I misunderstood. I assumed you meant our Payment Links product: https://stripe.com/docs/payments/payment-links/overview
You can, yep. It's on the Invoice object: https://stripe.com/docs/api/invoices/object#invoice_object-hosted_invoice_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.
cool ๐
so i have to retrieve the invoice and then use the hosted_invoice_url to redirect the user
thats exactly what i want ๐
thank you ynnoj !
Np!