#paly

1 messages · Page 1 of 1 (latest)

violet swanBOT
rugged inlet
real cargo
#

Hi @rugged inlet Thanks for the reply. Can I create a paymelink link using checkout Session?

slim urchin
#

Hi! I'm taking over this thread.

#

If you create a Payment Link, every time a user click on the link Stripe will automatically create a Checkout Session.

real cargo
#

Sorry, I am confused

slim urchin
#

Which part exactly? Can you clarify what you are trying to do?

real cargo
#

ok let me repeat that

I want to use stripe connect standard account to make the transaction with some application fees, But I need to create a payment link to open in a new tab on browser (as I am using iframe widget)

#

and each transaction will have no such product or price because each transaction has different amount or currency

slim urchin
#

each transaction has different amount or currency
Then you shouldn't use Payment Links for this, but Checkout Session.

real cargo
#

but I cannot use the checkout session because it's in i frame

#

can I create a payment link from checkout session or get the payment link using checkout session?

slim urchin
#

Okay let's take a step back:

  • If you want customers to be redirected to a Stripe URL to pay (so not in a iframe), use Payment Link or Checkout Session (these are two different products)
  • If you want customers to pay directly on your website, use Payment Element
    In your case, since you mentioned "each transaction has different amount or currency", you can't use Payment Links. So it should either be Checkout Session or Payment Element.
#

So which one do you want to use? Checkout Session or Payment Element?

real cargo
#

I can use any of them I do not have any issues until it's meeting my requirements which is

  1. I can send a link or session from the backend and user will have the option to pay using the link

I cannot embedd stripe elements in iframe and technically it's not meeting the requirements

slim urchin
#

I'm not sure I understand your requirements, but Checkout Session should work, no?

  1. Create a Checkout Session
  2. You get back a URL
  3. Redirect users to that URL so they can pay
real cargo
#

ok understood but for every checkout session I have to create a priceID and productID . right?

#

because each transaction has a different amount and there is no product associated with it. It's a one time payment

slim urchin
real cargo
slim urchin
#
  • Either you use a Price object, like line_items: { price: "price_xxx"}
  • Or you don't use a Price object and directly set the price, like line_items: { price_data: { amount: 1000, currency: "usd", ... } }
real cargo
#

let me check ..

#

So not product is required in price_data