#svetlana_16529

1 messages · Page 1 of 1 (latest)

fiery cobaltBOT
floral hazel
#

but I don't get this new payment link automatically by using API (through session obj)
Could you elaborate on this part? Which API?

autumn trellis
floral hazel
#

Yeah because that's a standalone Checkout Session

#

PaymentLink creates a lot of Checkout Sessions, that's 1:n relationship. But if you create a standalone Checkout Session, it doesn't belong to any PaymentLink

#

You can consider using metadata when creating Checkout Session, to store any customized information

autumn trellis
#

Oh, how I can change payment information for this existed product? I would like use new payment window for it. I thought that I just can create new payment link and use it for all users with this product. Now I understand that it doesn't work in that way

fiery cobaltBOT
floral hazel
#

Not sure what it mean for change payment information for product

#

Do you mean the set of PaymentMethods allowed to be used?

autumn trellis
#

No, now when user buys my product he can just fill email and bank card data. I would like to give them opportunity to fill some additional fields

#

You can see the differences

floral hazel
#

Probably you want this?

autumn trellis
#

I have added this custom fields to new payment link)

#

I Would like to understand how I can change it for the product. Now my users get url from stripe for payment with old fields. New fields are available only by manual getting new payment link

mortal fulcrum
#

Not really understanding the issue. Custom fields are set per Payment Link. If you want different fields, you'll need a new/different PL

autumn trellis
#

Okay, I will try to explain the problem. I have a product in stripe. When user buys subscription he gets old link because I get this link automaticly by using Checkout Sessions -> I get url of payment link and give it to users. Now I would like to give new number of fields during payment proccess. I have tried to do new payment link inside this product in stripe. This payment link has new fields. But I can share this payment link only manualy when I go to the stripe account and copy this link. I would like to apply this changes for product in general, I would like to get situation when user gets new payment link automaticly. As I have mentioned I don't get this new payment link from checkout session. It's null

mortal fulcrum
#

You can't as I explained. The custom fields don't exist at the Product level like you're describing, they're on the Payment Link/Checkout Session

#

You need to just archive the PL with the old fields and only use the PL with the new fields

autumn trellis
#

But I have only one PL inside this product

mortal fulcrum
#

That's likely just a limitation of the Dashboard UI

#

A single Product/Price can have multiple Payment Links

autumn trellis
#

It'sexample of my product

#

Inside default price I have only one new payment link

#

or I should archive product and create new?

mortal fulcrum
#

As I said, that's a limitation of the UI. You can have infinite Payment Links for a single Product/Price. I guess we only surface the most recent PL there

autumn trellis
#

Okay, it that case how I can find old payment link to archive it?

mortal fulcrum
autumn trellis
#

Here I alsoo have only one link for this product

mortal fulcrum
#

Can you share an ID of Payment Link? plink_xxx?

autumn trellis
#

sure

#

"plink_1NjCeFAPBXcnQHyv1cysW6Kb"

#

It's testmode

mortal fulcrum
#

Checking

fiery cobaltBOT
mortal fulcrum
#

Maybe I'm not really understanding the issue. Can you share an example object where the wrong custom fields are collected?

autumn trellis
#

Yes, sure. Let's speak about this product with plink_1NjCeFAPBXcnQHyv1cysW6Kb. My beckend works with checkout session and I get the url from chekout session and give it to the user automaticly. This url give user window for payment with old fields.

I would like to change this link to the new with custom fields. Is it possible?

#

I would like to get this link instead

mortal fulcrum
autumn trellis
#

Okay how I can get this link from API?

#

My previous colleague used checkout session and inside this object there is only this url

mortal fulcrum
#

When your customer(s) click that buy.stripe.com URL the Payment Link will generate a cs_xxx session for them to complete the payment

#

But those are one-time and short-lived. The buy.stripe.com URL is reusable and can be shared multiple times

autumn trellis
#

I see, I will think about it. But if I will use old version with short-lived links can I configure new parameters for payment in that case?

sonic tiger
#

can I configure new parameters for payment
I'm not sure what that refers to.

#

you can't update an existing CheckoutSession object, once it's created it's created, you'd create a new one(with a different resulting URL) if you need to for some reason.

fiery cobaltBOT
autumn trellis
#

I can't influence for payment fields on this page, can I?

muted kestrel
#

What fields you want to update ?

autumn trellis
#

I would liketo add additional fields forbussiness payments like tax ID, name of organisation

muted kestrel
#

Is that what you are looking for ?

autumn trellis
#

At the moment our project useses session object and payment links from this API is not available in session API. I'm trying to understand how I can change fields on the payment screen by using url from session API

muted kestrel
#

I don't understand what you want to achieve exactly.

#

Can you give some concret examples ?

autumn trellis
#

Sure, You can see it above with screeshots. I would like to give users url for payment with additional fields but I can't change it. When I create new payment link with new settings it's working butI schould take this link manually. I'm trying to understand how I can change default view of this screen for payment. My product in stripe has only one payment link inside but I don't get this link inside session data - it's null -> I just get url and it's working for payment but with old number of fields (only email and bank card)

muted kestrel
#

I'm trying to understand how I can change default view of this screen for payment
What you want to change exactly in that view ?

#

My product in stripe has only one payment link inside but I don't get this link inside session data - it's null -> I just get url and it's working for payment but with old number of fields (only email and bank card)
I don't understand this part, can you share an example of a link ?

autumn trellis
#

number of fields - I wouldlike to add field like tax ID, name of organisation

muted kestrel
#

You are using PaymentLinks or Checkout Session ? I'm confused now ....

autumn trellis
#

Checkout Session