#Sapna Verma
1 messages ยท Page 1 of 1 (latest)
or using create subscription do it all for me automatically? - how will it know whether to save the details or process immediately
Also, can I accomplish processing the payment immediately by using setup Intent and the now timestamp?
please answer ..
If you're using recurring payments, you should just create a Subscription. That will generate the PI or SI according to whether there's a payment due immediately
ok...and how will that be used ...in case of SI, will it be handled automatically for payments at a later date?
Yes, the Setup Intent will facilitate payment details collection for future payments
What do you mean 'processing'?
payment deduction of the future paymnets?
Yes, we'll automatically attempt to charge the payment method for future recurring payments. See: https://stripe.com/docs/billing/subscriptions/overview#subscription-lifecycle
this link does not answer my Q
I'd recommend reading the entire doc, which explains how Subscriptions work pertaining to recurring payments
Yes, we'll automatically attempt to charge the payment method for future recurring payments. - can I accomplish processing the payment immediately by using setup Intent and the now timestamp instead of using payment intent api for the non trialing subscriptions?
No, any Subscriptions that require an immediate payment (i.e. non-trials) will generate a Payment Intent. Not sure why you'd want a Setup Intent in that instance?
my PM asked me to use just one that is setupintent for both trials and no trials
with a timestamp and now respectively
๐ @tame pebble happy you're back
doing good how about you?
am good too..good to see you...was looking for u another day...
let's focus on the task ahead, discord is really busy today
i just have a small query - can i use just one api that is setupintent for both trials and no trials
with a timestamp and now respectively.
yes we did ..my boss wanted me to use just one
you need to use either the pending_setup_intent or the latest_invoice.payment_intent to get the secret
your boss is wrong! that's not their fault, they don't know better
ok
it is one call
it's either or
I mean you call your backend's create subscription API which returns an object with a client_secret (from either the p_s_i or l_i.p_i) and a type (setup or payment) which then you would use either confirmSetup or confirmPayment on the frontend based on what you received as a type
and using Setup Intent will make the future payments automatically on the billing_cycle_anchor date and i dont have to do anything on that date....right?
yes if you've use the parameters we agreed upon weeks ago
okay
mainly https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method (on_subscription) and https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_behavior (allow_incomplete)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thanks for sharing
please don't hesitate to go back to our previous threads if you need more details
ok..also it says that Use default_incomplete to create Subscriptions with status=incomplete when the first invoice requires payment, otherwise start as active. ,,,is this to be used when trial =0
or trial_end = now
payment_behavior
optional enum
in all cases use allow_incomplete
ok
Also, what are the items in the Invoice.paid webhook event?
how to look for the details of webhook events...
you can look at this page
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
each event has the type of object returned mentioned
also
yes
these are questions for https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
ok