#meshpaul_api

1 messages ¡ Page 1 of 1 (latest)

noble basaltBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1217522005910360085

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

rich falconBOT
shadow raven
#

Hi, you want to add these items for the same subscription, is that correct? The request id you shared seems be upding an existing subscription. Are you trying to create the PaymentLink using the API or the Dashboard?

half robin
#

one sec

#

we validating

#

via CODE

shadow raven
#

If you're attempting to add both of the products on the same subscription using the Payment Link, then no. You would offer the free trial on the entire Subsciprtion.

half robin
#

So what is the approach we can take to make this happen do we need to create two different subscriptions ?

shadow raven
#

I think you could offer a Promotion code, https://docs.stripe.com/api/payment_links/payment_links/create#create_payment_link-allow_promotion_codes as an option. You can add both of the items on the Payment Link, and then create the promotion code, https://docs.stripe.com/api/promotion_codes/create for the amount of the invoice item that you want to offer a trial. You can calcultate what that amount would be. Otherwise, yes, you would create two subscirptions. One with the free trial, and the second without it.

half robin
#

Ok this may work.

#

And last question before we go back to drawing/coding board can we create two subscriptions and tie them to same customer-id

Our original flow was we were creating payment link that added all items, created subscription and new customer id for on-boarding

So can we do this using same payment link or this can be done using second step as Invoice ????

shadow raven
half robin
#

Ok so create checkout session does requires UI/UX integration to keep track of the sesson or can session be tracked from back-end and we can generate payment links or invoices ?

#

I am trying to minimize our scope of changes needed for UI/UX as far as I understand that requires Stripe React Compoents on front-end

shadow raven
#

Yes, Checkout does require a minimal coding.

#

I do not understand what you mean by 'tracked from back-end and we can generate payment links or invoices', can you reword it?

half robin
#

Meaning for Checkout we need to implement things on Back-end and Front-end (Using Stipe React Components)

#

So my question is there a way to implement a checkout using only back-end and pass to front-end only PaymentLinks for example ????

shadow raven
#

I see, there is not. These are two separate flows. One is no code, Payment Links and the Checkout Sessions will need some UI to work.

half robin
#

Ok thank you