#meshpaul_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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?
one sec
we validating
We created this payment link https://buy.stripe.com/test_6oEg219cC4gcaBy8Dk.
via CODE
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.
So what is the approach we can take to make this happen do we need to create two different subscriptions ?
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.
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 ????
Hmm, no. Not with Payment Links. You can use the Stripe Checkout, https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-customer for that and pass the customer id. With Payment Links, no as that is not what it is designed for.
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
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?
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 ????
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.
Ok thank you