#Sapna Verma

1 messages ยท Page 1 of 1 (latest)

fervent heartBOT
tame pebble
#

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

cold ether
#

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

tame pebble
#

ok...and how will that be used ...in case of SI, will it be handled automatically for payments at a later date?

cold ether
tame pebble
#

and the processing...will it be automatic

#

?

cold ether
#

What do you mean 'processing'?

tame pebble
#

payment deduction of the future paymnets?

cold ether
tame pebble
#

this link does not answer my Q

cold ether
#

I'd recommend reading the entire doc, which explains how Subscriptions work pertaining to recurring payments

tame pebble
#

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?

cold ether
#

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?

tame pebble
#

my PM asked me to use just one that is setupintent for both trials and no trials

#

with a timestamp and now respectively

lyric thicket
#

๐Ÿ‘‹ @tame pebble happy you're back

tame pebble
#

hey

#

how are u?

lyric thicket
#

doing good how about you?

tame pebble
#

am good too..good to see you...was looking for u another day...

lyric thicket
#

let's focus on the task ahead, discord is really busy today

tame pebble
#

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.

lyric thicket
#

no that's not possible

#

I thought we already covered this a while back

tame pebble
#

yes we did ..my boss wanted me to use just one

lyric thicket
#

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

tame pebble
#

ok

lyric thicket
#

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

tame pebble
#

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?

lyric thicket
#

yes if you've use the parameters we agreed upon weeks ago

tame pebble
#

okay

lyric thicket
tame pebble
#

thanks for sharing

lyric thicket
#

please don't hesitate to go back to our previous threads if you need more details

tame pebble
#

sure, thanks

#

can u help - how to search the previous threads

lyric thicket
#

you can do a from: Sapna Verma#0076 search on the #dev-help channel

tame pebble
#

the confirmSetup or confirmPayment are to be called manually

#

?

lyric thicket
#

what do you mean by manually?

#

your front-end code should handle this

tame pebble
#

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

lyric thicket
#

in all cases use allow_incomplete

tame pebble
#

ok

#

Also, what are the items in the Invoice.paid webhook event?

#

how to look for the details of webhook events...

lyric thicket
#

you can look at this page

#

each event has the type of object returned mentioned

tame pebble
#

also

lyric thicket
#

yes

tame pebble
#

the american express charges from a US based stripe account

#

are they 3.5%

lyric thicket
#
tame pebble
#

ok