#umaritis_code

1 messages · Page 1 of 1 (latest)

primal troutBOT
#

👋 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.

chilly hollow
#

hi there!

indigo sorrel
#

hii

#

can you please guide me how can i get the payment intent in the free trial?

chilly hollow
#

so you are creating a Subscription with a free trial, so you no longer have a PaymentIntent to collect the payment details?

indigo sorrel
#

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?

chilly hollow
#

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?

indigo sorrel
#

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 ?

indigo sorrel
chilly hollow
#

is this for iOS, Andoird, or React Native?

indigo sorrel
#

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?

indigo sorrel
chilly hollow
#

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 the pending_setup_intent property on the Subscription. it contains a SetupIntent with a client secret.