#LMF-payment-link

1 messages ยท Page 1 of 1 (latest)

full knot
#

Payment Links don't currently support API creation, its dashboard only

steel summit
#

Yes, that's what I used.

full knot
#

but you can't associate payment link usage to specific customers, that's not currently supported

steel summit
#

Such a shame, would have made my project much easier.

#

Big shame.

full knot
#

its the same link for everyone and creates a new customer

steel summit
#

Should be a feature.

#

Letting me specify the existing customer_id would have been much much much simpler.

full knot
#

The payment Links team is working hard to add tons of new features, including an API, but it isnt ready yet

steel summit
#

They could have clicked a button and paid...

#

Instead they'll have to open an email for the invoice?

full knot
#

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

steel summit
#

I have a customer setup

#

No sessions yet, I want a really minimal example just to prove it works.

full knot
#

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

steel summit
#

I have the price_id

#

What's the bare minimum to do it?

With price_id and customer_id already accessible?

#

Most basic example.

full knot
#

the server snippet there

#

create the session with mode=subscription and use the price in a single line item, provide the customer, then redirect

steel summit
#

Okay, thank you very much. synthrider.

full knot
#

np!

steel summit
#

Portal takes a customer_id, Checkout does not seem to take it so obviously.

#

Looking through here now.

#

client_reference_id

#

Got it, thank you.

#

Not true.

full knot
#

no, customer

steel summit
#

client_reference_id is

full knot
#

both use customer parameter

steel summit
#

For an arbitrary/internal id

full knot
steel summit
#

Sweet, thank you.

#

I will pass both ๐Ÿ˜„

full knot
#

you can use client_reference_id or metadata

#

up to you!

#

customer is for a stripe customer id

steel summit
#

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.

full knot
#

haha yep darn languages