#umaritis_code
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/1407338815563108453
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- umaritis_code, 3 hours ago, 25 messages
hi there!
so you are creating a Subscription with a free trial, so you no longer have a PaymentIntent to collect the payment details?
if so, you don't need to create a SetupIntent. just use the SetupIntent that the Subscription created for you in pending_setup_intent https://docs.stripe.com/api/subscriptions/object#subscription_object-pending_setup_intent
yes on the launcher layer we are using the this details {
subscriptionId: activeSubscription.id,
// paymentIntent: paymentIntent.client_secret,
paymentIntent: clientSecret,
ephemeralKey: ephemeralKey.secret,
customer: customerId,
publishableKey: process.env.STRIPE_PUBLISHABLE_KEY,
},
to show the pop ups to the users but now as the payment intent will no logner be supproted on the free trials how can i get all these on the free trials from the stripe?
yes on the launcher layer
I have no idea what this means sorry.
can you share more details about your setup? are you creating a subscription in the backend? then how do you collect the payment details currently? in a mobile app with the PayemntSheet?
oh so i am working on a game which setup in the andorid which has the frontend called as launcher layer
when we get the users payment details so we need to give them a free trial without charging them and it will return the payment intent as null but the existing flow on the launcher need to have the payment intent client secrets to use the flow how can we get the payment intent client secrets to make that work ?
yes we are using the PaymentSheet
is this for iOS, Andoird, or React Native?
We are working on a game project where the original payment flow was like this:
We used to collect the user’s payment details through the Stripe Payment Sheet.
After that, we charged the user, and in the response, we received a Payment Intent and its client secret.
Using this client secret, we showed the Stripe confirmation popup to the user, and once they confirmed, the payment was completed.
Now, however, we are offering users a free trial. Because of this, there is no actual payment being made upfront. This means we no longer receive the client secret from a Payment Intent (since no charge is happening).
But we still need a client secret in order to display the Stripe popup and allow the user to add/confirm their payment details for the trial. The problem is: how can we get a client secret in this new free trial flow, where we don’t immediately create a Payment Intent?
frontend is in the android and backend is in nodejs so we are more in backend
The problem is: how can we get a client secret in this new free trial flow, where we don’t immediately create a Payment Intent?
I already answered that question earlier: use thepending_setup_intentproperty on the Subscription. it contains a SetupIntent with a client secret.