#LMF-payment-link
1 messages ยท Page 1 of 1 (latest)
Payment Links don't currently support API creation, its dashboard only
The customer create api is defined here: https://stripe.com/docs/api/customers/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yes, that's what I used.
but you can't associate payment link usage to specific customers, that's not currently supported
its the same link for everyone and creates a new customer
Should be a feature.
Letting me specify the existing customer_id would have been much much much simpler.
The payment Links team is working hard to add tons of new features, including an API, but it isnt ready yet
They could have clicked a button and paid...
Instead they'll have to open an email for the invoice?
You can still use Checkout sessions to create subscriptions
From the user perspective they click a button, but you need to set up the session/customer etc
Learn how to offer and manage subscriptions with different pricing options.
I have a customer setup
No sessions yet, I want a really minimal example just to prove it works.
https://github.com/stripe-samples/checkout-single-subscription
This has a lot of bloat.
Well, all you need is the price to create the checkout session, then redirect your customer. you can cut out as much of that example as you like
I have the price_id
What's the bare minimum to do it?
With price_id and customer_id already accessible?
Most basic example.
Learn how to offer and manage subscriptions with different pricing options.
the server snippet there
create the session with mode=subscription and use the price in a single line item, provide the customer, then redirect
Learn how to offer and manage subscriptions with different pricing options.
Okay, thank you very much. synthrider.
np!
When you say "provide the customer" can you be more specific?
Portal takes a customer_id, Checkout does not seem to take it so obviously.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Looking through here now.
client_reference_id
Got it, thank you.
Not true.
no, customer
client_reference_id is
both use customer parameter
For an arbitrary/internal id
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
you can use client_reference_id or metadata
up to you!
customer is for a stripe customer id
Yes sir, I got that already.
I make a customer account when someone registers.
Hope that's okay ๐
For some reason checkout does not seem to be as easy to find as the others.
ah
it's .sessions.
The docs are right.
but i originally copied it from somewhere that's wrong...
Ah yes, you can't use Python version in Node... another missing feature. ๐
Thanks for all the help.
haha yep darn languages