#bennn

1 messages · Page 1 of 1 (latest)

fiery nestBOT
slow hamlet
zenith cipher
#

and how would i make sure they pay the next payment?

slow hamlet
#

Next payment? do you mean the upcoming invoice of the subscription?

zenith cipher
#

im confused

#

i thought we are talking about checkouts not invoices?

slow hamlet
#

Can you tell me more about the scenario of the next payment?

zenith cipher
#

its a monthly subscription

#

so i need to make sure they pay for the next month

#

im handling cancelling subs

#

but if their card is declined or smth i need to remove them

slow hamlet
#

OK, so it's about invoices of the subscription, am I correct?

zenith cipher
#

So the initial subscription is a checkout session?

#

And future payments are thru invoices?

slow hamlet
#

Let me walk you through:

  • When you customer complete a subscription mode checkout session, Stripe will create a subscription behind the scene.
  • The subscription generate invoices periodically based on the billing schedule (i.e., weekly, monthly, annually)
  • Once an invoice is created, depends on the collection_method, Stripe will either send an invoice to the customer, or charge them automatically.
zenith cipher
#

oh okay

#

so the collection method is automatic by default?

#

oh wait

#

can I make a subscription that doesn’t charge automatically?

#

bc that would probably be better than my one time payments

slow hamlet
#

For one time payment you should just use payment mode checkout session instead of subscription mode.

zenith cipher
#

oh okay

#

is that better than just making invoices?

#

or no different

#

idk what I should do

slow hamlet
#

Can you tell me what you want to achieve?

zenith cipher
slow hamlet
#

It is an one-time payment or recurring payments (i.e., subscription)

zenith cipher
#

Whichever the user prefers

slow hamlet
#

Then you should just use Checkout, either subscription mode and/or payment mode.

zenith cipher
#

and do u mind saying about the other question

#

how do i make sure they pay

#

like card didnt get closed or smth

#

declined *

#

when they have auto payments

slow hamlet
zenith cipher
#

nah im cool with decliens

#

i just need to terminate their service

#

if they dont pay for whatever reason

#

how would i check that? what am i checking?

slow hamlet
zenith cipher
#

nah like

#

if the card gets declined

#

how would i check for that

#

not on the first payment

#

lets say for the first 2 months they pay

#

but the third month their card is declined

#

how would i check that and terminate them

slow hamlet
zenith cipher
#

im trying to avoid doing event listening

#

in case of bot downtime

#

my idea is run a task every 12-24 hours

#

to check all payments and subscriptions

slow hamlet
#

I'd strongly suggest using webhook, it's more efficient than polling.